Version française
Home     About     Download     Resources     Contact us    
Browse thread
OCaml CVS: "Warning Z: unused variable loc" in camlp4-processed files.
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Michel Mauny <Michel.Mauny@i...>
Subject: Re: [Caml-list] OCaml CVS: "Warning Z: unused variable loc" in camlp4-processed files.
Michel Mauny wrote/écrivait (Tue, Nov 16, 2004 at 06:42:15PM +0100):

> Existing programs using the "loc" identifier and willing to
> keep it in 3.09, will have do something like:
> 
>      stdpp.loc_name := "loc"
> 
> And those willing to prepare their code to 3.09 can try:
> 
>     stdpp.loc_name := "_loc"
> 
> (This works in 3.08.)

I forgot to mention that you can do that with a camlp4 option:

$ camlp4 -help
Usage: camlp4 [load-options] [--] [other-options]
 ...
Other options:
  ...
  -loc <name>   Name of the location variable (default: loc)

-- Michel