caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Intended behavior of GenerateMap
@ 2007-06-08  8:36 Christian Stork
  2007-06-13 11:36 ` [Caml-list] " Nicolas Pouillard
  2007-06-23 18:59 ` Nicolas Pouillard
  0 siblings, 2 replies; 9+ messages in thread
From: Christian Stork @ 2007-06-08  8:36 UTC (permalink / raw)
  To: caml-list

Hi,

Is my understanding correct that running "camlp4of -filter map ..." over

    class map = Camlp4Filters.GenerateMap.generated

will produce a map class for *all* types defined in the current file --
irrespective if the types are incapsulated in a module (which is then
used for the Camlp4Trash trick)?

Wouldn't it be much nicer, i.e., more economical and more precise, if
the above only produces a map class for the most recently defined type
/ mutually recursive types?   

Just wondering,
Chris

PS: I came to the above question after reading the source and some
experimentation.  Is there any place where the rationale behind
GenerateMap/Fold is explained?

-- 
Chris Stork   <>  Support eff.org!  <>   http://www.ics.uci.edu/~cstork/
OpenPGP fingerprint:  B08B 602C C806 C492 D069  021E 41F3 8C8D 50F9 CA2F


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-06-24 12:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-08  8:36 Intended behavior of GenerateMap Christian Stork
2007-06-13 11:36 ` [Caml-list] " Nicolas Pouillard
2007-06-14 12:35   ` Nicolas Pouillard
2007-06-23 18:59 ` Nicolas Pouillard
2007-06-23 21:04   ` Christian Stork
2007-06-24  8:13     ` Nicolas Pouillard
2007-06-24 10:21       ` Anti-matching Frédéric Gava
2007-06-24 10:52         ` [Caml-list] Anti-matching David Thomas
2007-06-24 12:32           ` Frédéric Gava

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).