[Omake] omake causes environmental pollution

Markus Mottl markus.mottl at gmail.com
Mon Aug 21 14:00:45 PDT 2006


Hi,

"omake" (version 0.9.6.8, haven't tried with the latest release,
because it breaks our project) will by default reexport bindings from
OMakefiles to ones further up in the tree and from there to siblings,
thus polluting their environments.

This unfortunate feature has already caused us a lot of headaches,
because it is very tedious to scan possible siblings for whether they
let their environment escape.

We currently have to put the following line at the end of each
OMakefile (we have almost 200) to prevent this:

  _ =

We really think that this is a misdesign in the language semantics,
because people will most generally not want to silently export
bindings to unrelated environments.  It seems much more intuitive to
require people to export the environment with an explicit "export" or
"export MY_VAR", etc., at the end of an OMakefile to prevent other
subtrees in the project from accidental environmental pollution.

Regards,
Markus

P.S.: I apology if this has already been fixed in the newest release,
I'm too busy to test it right now...

-- 
Markus Mottl        http://www.ocaml.info        markus.mottl at gmail.com


More information about the Omake mailing list