Re: last item. no output
| Newsgroups | gmane.comp.lang.ocaml.beginners |
|---|---|
| Message-ID | <[email protected]> |
On 18 Oct 2014, at 12:46, "Roelof Wobben [email protected] [ocaml_beginners]" <[email protected]> wrote: > I forget to tell that I work now in utop and not from a saved file. I may have misunderstood what you meant, and you might already know this, but you can still use a saved file and run it in utop. If you keep your code in a file called my_file.ml, you can run the following command in utop. #use "my_file.ml";; (In the file itself you do not need to use double semi-colons) More info from the Manual [1]: #use "file-name";; Read, compile and execute source phrases from the given file. This is textual inclusion: phrases are processed just as if they were typed on standard input. The reading of the file stops at the first error encountered. [1] http://caml.inria.fr/pub/docs/manual-ocaml-4.02-1/toplevel.html#sec256 ------------------------------------ ------------------------------------ Archives up to December 31, 2011 are also downloadable at http://www.connettivo.net/cntprojects/ocaml_beginners The archives of the very official ocaml list (the seniors' one) can be found at http://caml.inria.fr Attachments are banned and you're asked to be polite, avoid flames etc. ------------------------------------ Yahoo Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/ocaml_beginners/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/ocaml_beginners/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo Groups is subject to: https://info.yahoo.com/legal/us/yahoo/utos/terms/