English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Immediate recursive functions
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-02-18 (22:36)
From: Hendrik Tews <tews@t...>
Subject: Re: [Caml-list] Camlp4 with traditional syntax (was: Camlp4 documentation)
Alex Baretta <alex@barettadeit.com> writes:

   There is one more issue with Camlp4: it does not allow for quotations
   to expand to generic syntactic elements. Often, I use quotations which
   expand to module definitions. I had to implement my own quotation
   expander, bypassing the limitations of Camlp4 to achieve this.
I don't quite understand, what's wrong with 

let me = <:module_expr< struct $ list of module def's $ end >>
  <:str_item< module $some_name$ = $me$ >>