* [Caml-list] creating a module from a #use directive in the toplevel, or so @ 2012-12-04 8:46 Francois Berenger 2012-12-04 8:57 ` Gabriel Scherer 0 siblings, 1 reply; 3+ messages in thread From: Francois Berenger @ 2012-12-04 8:46 UTC (permalink / raw) To: caml-list Hello, Is there a way to do something like this in the toplevel: module M = (#use "source_for_module_m.ml") ;; Thanks, F. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] creating a module from a #use directive in the toplevel, or so 2012-12-04 8:46 [Caml-list] creating a module from a #use directive in the toplevel, or so Francois Berenger @ 2012-12-04 8:57 ` Gabriel Scherer 2012-12-04 9:05 ` Francois Berenger 0 siblings, 1 reply; 3+ messages in thread From: Gabriel Scherer @ 2012-12-04 8:57 UTC (permalink / raw) To: Francois Berenger; +Cc: caml-list See this discussion on the caml-list: https://sympa.inria.fr/sympa/arc/caml-list/2012-11/msg00021.html and in particular this message of Gerd: https://sympa.inria.fr/sympa/arc/caml-list/2012-11/msg00024.html and this one by Grégoire: https://sympa.inria.fr/sympa/arc/caml-list/2012-11/msg00032.html Grégoire's #mod_use directive has been included in trunk ( following bug report http://caml.inria.fr/mantis/view.php?id=5825 ), so it may be available by default in future versions of OCaml. On Tue, Dec 4, 2012 at 9:46 AM, Francois Berenger <berenger@riken.jp> wrote: > Hello, > > Is there a way to do something like this in the toplevel: > > module M = (#use "source_for_module_m.ml") ;; > > Thanks, > F. > > -- > Caml-list mailing list. Subscription management and archives: > https://sympa.inria.fr/sympa/arc/caml-list > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] creating a module from a #use directive in the toplevel, or so 2012-12-04 8:57 ` Gabriel Scherer @ 2012-12-04 9:05 ` Francois Berenger 0 siblings, 0 replies; 3+ messages in thread From: Francois Berenger @ 2012-12-04 9:05 UTC (permalink / raw) To: caml-list On 12/04/2012 05:57 PM, Gabriel Scherer wrote: > See this discussion on the caml-list: > https://sympa.inria.fr/sympa/arc/caml-list/2012-11/msg00021.html > and in particular this message of Gerd: > https://sympa.inria.fr/sympa/arc/caml-list/2012-11/msg00024.html > and this one by Grégoire: > https://sympa.inria.fr/sympa/arc/caml-list/2012-11/msg00032.html > > Grégoire's #mod_use directive has been included in trunk ( following > bug report http://caml.inria.fr/mantis/view.php?id=5825 ), so it may > be available by default in future versions of OCaml. Nice! Exactly what I needed. > On Tue, Dec 4, 2012 at 9:46 AM, Francois Berenger <berenger@riken.jp> wrote: >> Hello, >> >> Is there a way to do something like this in the toplevel: >> >> module M = (#use "source_for_module_m.ml") ;; >> >> Thanks, >> F. >> >> -- >> Caml-list mailing list. Subscription management and archives: >> https://sympa.inria.fr/sympa/arc/caml-list >> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners >> Bug reports: http://caml.inria.fr/bin/caml-bugs > ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-12-04 9:05 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-12-04 8:46 [Caml-list] creating a module from a #use directive in the toplevel, or so Francois Berenger 2012-12-04 8:57 ` Gabriel Scherer 2012-12-04 9:05 ` Francois Berenger
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox