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
Camlp4: example/
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Nicolas Pouillard <nicolas.pouillard@g...>
Subject: Re: [Caml-list] Camlp4: example/
Excerpts from Hendrik Tews's message of Mon Apr 07 09:31:09 +0200 2008:
> "Nicolas Pouillard" <> writes:
>    That's some corner case where first-class modules would help a
>    lot, however one can use some black magic under the hood to
>    get the same effect. One need to store extensions once and for
>    all, in a map from names to "modules". 
> Sure, if you can store modules in an association list, you are
> done. But how to store modules in an association list?

When  know  which  fields  makes  interest,  one can build a record with those
particular fields namely the two parsing functions and printing functions.

Nicolas Pouillard aka Ertai