caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Francois Berenger <berenger@riken.jp>
To: caml-list@inria.fr
Subject: Re: [Caml-list] creating a module from a #use directive in the toplevel, or so
Date: Tue, 04 Dec 2012 18:05:24 +0900	[thread overview]
Message-ID: <50BDBCD4.8040604@riken.jp> (raw)
In-Reply-To: <CAPFanBH9atUZrcgnMYuGO4=wiqB0uJ8g1ODAP7ZqY4WZ8=mQkA@mail.gmail.com>

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
>


      reply	other threads:[~2012-12-04  9:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-04  8:46 Francois Berenger
2012-12-04  8:57 ` Gabriel Scherer
2012-12-04  9:05   ` Francois Berenger [this message]

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=50BDBCD4.8040604@riken.jp \
    --to=berenger@riken.jp \
    --cc=caml-list@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).