From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by sympa.inria.fr (Postfix) with ESMTPS id 537A97EEEB for ; Tue, 4 Dec 2012 10:05:55 +0100 (CET) Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of berenger@riken.jp) identity=pra; client-ip=134.160.33.162; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="berenger@riken.jp"; x-sender="berenger@riken.jp"; x-conformance=sidf_compatible Received-SPF: Pass (mail4-smtp-sop.national.inria.fr: domain of berenger@riken.jp designates 134.160.33.162 as permitted sender) identity=mailfrom; client-ip=134.160.33.162; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="berenger@riken.jp"; x-sender="berenger@riken.jp"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: Pass (mail4-smtp-sop.national.inria.fr: domain of postmaster@postman.riken.jp designates 134.160.33.162 as permitted sender) identity=helo; client-ip=134.160.33.162; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="berenger@riken.jp"; x-sender="postmaster@postman.riken.jp"; x-conformance=sidf_compatible; x-record-type="v=spf1" X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArQAAHW8vVCGoCGimWdsb2JhbAAqGqtbkm4OAQEBAQEICwsHFCeCHgEBBAEyAQU2CgYLCxgJBBIPCQMCAQIBMxITBgIBAQ6HbAMJBgwtri6GdAOJXoxAgRqDJwOIXY0lgRyET41d X-IronPort-AV: E=Sophos;i="4.84,213,1355094000"; d="scan'208";a="164691767" Received: from postman2.riken.jp (HELO postman.riken.jp) ([134.160.33.162]) by mail4-smtp-sop.national.inria.fr with ESMTP; 04 Dec 2012 10:05:28 +0100 Received: from postman.riken.jp (postman2.riken.jp [127.0.0.1]) by postman.riken.jp (Postfix) with SMTP id DD7581260464 for ; Tue, 4 Dec 2012 18:05:24 +0900 (JST) Received: from [172.27.98.103] (rikad98.riken.jp [134.160.214.98]) by postman.riken.jp (Postfix) with ESMTPA id 33A41127005B for ; Tue, 4 Dec 2012 18:05:24 +0900 (JST) Message-ID: <50BDBCD4.8040604@riken.jp> Date: Tue, 04 Dec 2012 18:05:24 +0900 From: Francois Berenger User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: caml-list@inria.fr References: <50BDB856.7060203@riken.jp> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-PMX-Version: 5.6.0.2009776, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.12.4.85717 Subject: Re: [Caml-list] creating a module from a #use directive in the toplevel, or so 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 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 >