caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Gabriel Scherer <gabriel.scherer@gmail.com>
To: Francois Berenger <berenger@riken.jp>
Cc: caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] creating a module from a #use directive in the toplevel, or so
Date: Tue, 4 Dec 2012 09:57:53 +0100	[thread overview]
Message-ID: <CAPFanBH9atUZrcgnMYuGO4=wiqB0uJ8g1ODAP7ZqY4WZ8=mQkA@mail.gmail.com> (raw)
In-Reply-To: <50BDB856.7060203@riken.jp>

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

  reply	other threads:[~2012-12-04  8:58 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 [this message]
2012-12-04  9:05   ` Francois Berenger

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='CAPFanBH9atUZrcgnMYuGO4=wiqB0uJ8g1ODAP7ZqY4WZ8=mQkA@mail.gmail.com' \
    --to=gabriel.scherer@gmail.com \
    --cc=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).