From: "Ashish Agarwal" <agarwal1975@gmail.com>
To: "Ben Aurel" <ben.aurel@gmail.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] how to print (or cast) an integer
Date: Wed, 6 Aug 2008 10:38:01 -0400 [thread overview]
Message-ID: <d8be5ae20808060738u563dd2ctb2aa8e83579f2e51@mail.gmail.com> (raw)
In-Reply-To: <74a4f4670808060708n5102e6e6q57047077fff0fb85@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 827 bytes --]
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
>
[-- Attachment #2: Type: text/html, Size: 1588 bytes --]
next prev parent reply other threads:[~2008-08-06 14:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-06 14:08 Ben Aurel
2008-08-06 14:13 ` [Caml-list] " Andrew Gacek
2008-08-06 14:38 ` Ashish Agarwal [this message]
2008-08-06 18:34 ` David Allsopp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d8be5ae20808060738u563dd2ctb2aa8e83579f2e51@mail.gmail.com \
--to=agarwal1975@gmail.com \
--cc=ben.aurel@gmail.com \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox