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
[Caml-list] Again on pattern matching and strings
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Alessandro Baretta <alex@b...>
Subject: Re: [Caml-list] Again on pattern matching and strings

Olivier Andrieu wrote:
>  Alessandro Baretta [Thursday 24 October 2002] :
>  > I write this message because I would like to know what kind 
>  > of complications would need to be added to the compiler to 
>  > make the above trick work.
> None ! You can do it with camlp4 ! Unless I'm mistaken, what's
> described there :
> <> seems
> to apply to your case.

Ah, woe is me! I put ashes on my head. I do not understand 
the example, but yes, what I am asking for is essentially, a 
substitution of constant expressions for their alias in the 
syntax tree of the program. So yes: CamlP4 can do it. Since 
I don't want to reinvent the wheel, has anyone written--and 
documented for the syntax laymen--such an extension?


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: