Browse thread
Camlp4: example/parse_files.ml
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2008-04-07 (08:10) |
From: | Nicolas Pouillard <nicolas.pouillard@g...> |
Subject: | Re: [Caml-list] Camlp4: example/parse_files.ml |
Excerpts from Hendrik Tews's message of Mon Apr 07 09:31:09 +0200 2008: > "Nicolas Pouillard" <nicolas.pouillard@gmail.com> 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