Also note you do not need "and". That is only required when the variables being defined are mutually recursive. It would be better style to write:

let x = 1;;
let y = 2;;



On Wed, Aug 6, 2008 at 10:08 AM, Ben Aurel <ben.aurel@gmail.com> wrote:
hi

again a noob question

--
1 let x = 1 and y = 2;;
2
3 x + y ;;
--

how can I print the result on line 3? Printf.printf? I can't find a
solution based on the docu
http://caml.inria.fr/pub/docs/manual-ocaml/libref/Printf.html

thanks
ben

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs