Re: Module confusion

"Matthieu Dubuget [email protected] [ocaml_beginners]" <[email protected]> Thu, 26 Jan 2017 08:08:10 +0100
Newsgroups gmane.comp.lang.ocaml.beginners
Message-ID <[email protected]>
Le 26/01/2017 à 07:18, Manfred Lotz [email protected] [ocaml_beginners] a écrit :
> module Mod =
> struct
> let hello_world () = print_endline "Hello World"
> end

This new module you are defining is inside mod.ml file, hence nested into the first Mod module you used in your first exemple.

open Mod.Mod

will open it.

Salutations


-- 
Matthieu Dubuget



------------------------------------

------------------------------------

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/