[Omake] environments & export

Aleksey Nogin nogin at metaprl.org
Tue Sep 19 15:39:02 PDT 2006


On 19.09.2006 14:42, Janne Hellsten wrote:

> Has
> anyone asked for something like:
> 
> if $(foo)
>    export TESTS+=my_test
> 
> This could be used to selectively "promote" things to the enclosing scope.
> 
The exact syntax you propose would not work because "export" currently 
takes an optional space-separated list of variables to export, e.g.

section
   V1=...
   V2=...
   V3=...
   export V1 V3

would only export two variables out of three.

In general, we agree that the need to use these export statements 
everywhere is a problem and there are many deficiencies (for example, 
there is currently no way to say "export everything, except for variable 
V"). We have considered various approaches to managing the "exports" in 
a more flexible way, but so far could not come up with a fully 
satisfactory solution.

Aleksey


More information about the Omake mailing list