* [Caml-list] OASIS question: how does one set variables ? @ 2016-06-07 2:59 Chet Murthy 2016-06-07 12:40 ` [Caml-list] How to include files dynamically Nicolas Ratier 0 siblings, 1 reply; 4+ messages in thread From: Chet Murthy @ 2016-06-07 2:59 UTC (permalink / raw) To: caml-list [-- Attachment #1: Type: text/plain, Size: 430 bytes --] I'd like to avoid as much as possible the preservation of generated files, when using oasis. _tags isn't a problem (likewise Makefile) since they have a clear separation between what is customized, and what is oasis-generated. But setup.data does not have such a separation. But I'd like to change things like "bindir", and probably other things too. Is there a way to specify such customizations in _oasis? Thanks, --chet-- [-- Attachment #2: Type: text/html, Size: 565 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Caml-list] How to include files dynamically 2016-06-07 2:59 [Caml-list] OASIS question: how does one set variables ? Chet Murthy @ 2016-06-07 12:40 ` Nicolas Ratier 2016-06-07 12:48 ` Sébastien Hinderer 0 siblings, 1 reply; 4+ messages in thread From: Nicolas Ratier @ 2016-06-07 12:40 UTC (permalink / raw) To: caml-list Hello, Is there a way to include files dynamically ? a kind of : let aaa = "myfile.ml";; #use aaa;; Thanks, Nicolas ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] How to include files dynamically 2016-06-07 12:40 ` [Caml-list] How to include files dynamically Nicolas Ratier @ 2016-06-07 12:48 ` Sébastien Hinderer 2016-06-08 4:16 ` Mark Bradley 0 siblings, 1 reply; 4+ messages in thread From: Sébastien Hinderer @ 2016-06-07 12:48 UTC (permalink / raw) To: caml-list Nicolas Ratier (2016/06/07 14:40 +0200): > Hello, > > Is there a way to include files dynamically ? > a kind of : > > let aaa = "myfile.ml";; > #use aaa;; > > Thanks, Have you looked at the dynlink module? As far as I know it can load only object files so you would have to compile your .ml file before. Not sure there is a better alternative. Sébastien. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] How to include files dynamically 2016-06-07 12:48 ` Sébastien Hinderer @ 2016-06-08 4:16 ` Mark Bradley 0 siblings, 0 replies; 4+ messages in thread From: Mark Bradley @ 2016-06-08 4:16 UTC (permalink / raw) To: Sébastien Hinderer, caml-list [-- Attachment #1: Type: text/plain, Size: 1006 bytes --] You can try ocaml_plugin (also uses dynlink but will compile the .ml file before loading, I've also never tried it from the OCaml repl): https://github.com/janestreet/ocaml_plugin On 7 June 2016 at 22:48, Sébastien Hinderer <Sebastien.Hinderer@inria.fr> wrote: > Nicolas Ratier (2016/06/07 14:40 +0200): > > Hello, > > > > Is there a way to include files dynamically ? > > a kind of : > > > > let aaa = "myfile.ml";; > > #use aaa;; > > > > Thanks, > > Have you looked at the dynlink module? > > As far as I know it can load only object files so you would have to > compile your .ml file before. Not sure there is a better alternative. > > Sébastien. > > -- > 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 > -- -barkmadley sent from an internet enabled device http://barkmadley.com [-- Attachment #2: Type: text/html, Size: 2067 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-06-08 4:17 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2016-06-07 2:59 [Caml-list] OASIS question: how does one set variables ? Chet Murthy 2016-06-07 12:40 ` [Caml-list] How to include files dynamically Nicolas Ratier 2016-06-07 12:48 ` Sébastien Hinderer 2016-06-08 4:16 ` Mark Bradley
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox