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
Camlp4's (lack of) hygiene (was Re: Macros)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2000-07-19 (15:42)
From: Markus Mottl <mottl@m...>
Subject: Re: Camlp4's (lack of) hygiene (was Re: Macros)
On Mon, 10 Jul 2000, John Prevost wrote:
> While I've actually never been tempted to create an Array module by
> that name (I might be tempted a little with the current discussion on
> clf about fast persistent arrays), I have in fact created a String
> module.  At the time, I was working on some wide character stuff.

This "feature" comes handy when you want to replace the implementation of
the Array-module while still enjoying syntactic sugar (e.g. you can use my
resizable array module without having to change lots of code).

Unfortunately, if you create arrays with "[| ... |]", you always end up with
ones of the builtin type. So you have to apply a conversion function to
them to get the values you want.

Best regards,
Markus Mottl

Markus Mottl, mottl@miss.wu-wien.ac.at, http://miss.wu-wien.ac.at/~mottl