From the PDD:
-----
=item $P0 = find_global $P1, $S0
=item $P0 = find_global $S0
Find $P0 as the variable $S0 in the current namespace. or in $P1,
relative
to the HLL root namespace.
-----
I'm using the first version, but it's relative to the namespace set
in .namespace, not relative to the HLL root namespace (derived from
the .HLL directive)
Tcl is currently avoiding the problem by going back to NAMESPACE_ROOT
and drilling down to get to the parent namespace. On a side note, is
there a way to get at the parent namespace if you have a namespace? I
don't see anything in the PDD about it. (Seems you can only walk
*down* the hierarchy, not up.)
On Apr 18, 2006, at 11:14 AM, Leopold Toetsch wrote:
Will Coleda wrote:
Here's another potential NS issue. It looks like find_global is
being affected by the .namespace directive:
Yes. It sets the current namespace below the HLL namespace.
I think, this is the specced and correct behavior.
leo