Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Code-execution (evaluation) time
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Oliver Bandel <oliver@f...>
Subject: Code-execution (evaluation) time

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 = 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.)


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. :)