Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
A macro system compatible with modules
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-06-20 (12:52)
From: Pietro Abate <Pietro.Abate@a...>
Subject: Re: [Caml-list] A macro system compatible with modules
On Wed, Jun 20, 2007 at 02:17:22PM +0200, Loup Vaillant wrote:
> -> When I define a macro, it is available for use right now, in the
> same compilation unit.
> -> If I want to call the macro from another compilation unit, I just
> have to either open the corresponding module :

I've written something similar for one of my projects.

I think you can use the same technique to generate a define statement
that can be used straight away in your module and eventually export
to other modules.


++ Blog:
++ "All great truths begin as blasphemies." -George Bernard Shaw
++ Please avoid sending me Word or PowerPoint attachments.