From: "Oliver Bandel" <oliver@first.in-berlin.de>
To: caml-list@yquem.inria.fr
Subject: Code-execution (evaluation) time
Date: Tue, 19 Oct 2010 20:39:18 +0200 [thread overview]
Message-ID: <20101019203918.202612lacw5rse6u@webmail.in-berlin.de> (raw)
Hello,
I want to refresh my OCaml knowledge after
I (again) paused for a while.
I want to know, when certain parts of the code are executed,
for example if I have more than one let _ = ...
statement in my code (for example in different comp0ilaion units each
one of them).
I also found an old code snippet with the following parts:
==============================
let fnames = List.tl(Array.to_list Sys.argv)
(* some more code *)
let _ =
List.iter print_days_old fnames
==============================
So, the value fnames contains the args from the command line
and can be used in the first statement of the code.
Is there some documentation on the details of which things
are executed/evaluated at which point of the execution phase
of the program?
I don't want to rely on weak knowledge (because some things I've
forgotten... jzst have done C, Python and even Assembler (!) during
the last years...
just some snippets of OCaml in that time.)
Ciao,
Oliver
P.S.: After coming back to OCaml (what I do mostly in privat projects,
at work it's very unlikely to have the possibility) I'm again
even more convinced that it is the best language for most problems. :)
And it's so much fun using it. :)
next reply other threads:[~2010-10-19 18:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-19 18:39 Oliver Bandel [this message]
2010-10-19 19:52 ` [Caml-list] " David Allsopp
2010-10-21 19:43 ` oliver
2010-10-21 22:34 ` oliver
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=20101019203918.202612lacw5rse6u@webmail.in-berlin.de \
--to=oliver@first.in-berlin.de \
--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;
as well as URLs for NNTP newsgroup(s).