PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/ocaml/contract/example_prog.ml

#
OCaml | 7 lines | 6 code | 1 blank | 0 comment | 0 complexity | 1f8d2fb9e45af51b2f640a009efc1d5f MD5 | raw file
1open Swig 
2open Example
3
4let _ = print_endline "This won't throw." 
5let _ = Printf.printf "Cos 1.0 is %f\n" (_cos '(1.0) as float)
6let _ = print_endline "This will throw."
7let _ = Printf.printf "Cos 5.0 is %f\n" (_cos '(5.0) as float)