[Omake] Documentation example does not work
Aleksey Nogin
anogin at hrl.com
Tue Aug 21 12:46:48 PDT 2007
On 21.08.2007 12:26, Markus Mottl wrote:
> 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.
Right, one of the big code-level changes in 0.9.8.5 is that the notions
of and environments and a value are now a lot more separate. Before, it
was sufficient to simply return an environment value in order for it to
be exported back, not such exports have to be explicit.
> 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?
>
For now, you need to use an explicit
...
arg[] = $(private.arg)
...
but this should go away very soon.
Aleksey
--
Aleksey Nogin, Research Scientist
Advanced Technologies Department, Information & System Sciences Lab
HRL Laboratories, LLC, Malibu, CA
More information about the Omake
mailing list