[Omake] Documentation example does not work
Markus Mottl
markus.mottl at gmail.com
Tue Aug 21 12:26:52 PDT 2007
On 8/20/07, Aleksey Nogin <anogin at hrl.com> wrote:
> The export _function_ is no longer allowed to "penetrate" section
> boundaries - only a real export can. It is only allowed to
> package/unpackage environments. What you can do to emulate the above
> example is the following:
Ok, thanks, I now get the distinction. The problem I had run into was
that it is not possible to unpackage an environment with the
"value"-function anymore, but one has to use "export" there, too.
Anyway, here is a new problem, which is almost certainly a bug:
--------------------------------------------------------
f(arg) =
private.env. =
arg[] = $(arg)
println($(string $(private.env.arg)))
arg = 43
f(42)
--------------------------------------------------------
This will print 43, but it should really print 42, right?
Regards,
Markus
--
Markus Mottl http://www.ocaml.info markus.mottl at gmail.com
More information about the Omake
mailing list