$P0 = get_namespace ["Foo"; "Bar"]
Where should the lookup start?
Is this to be considered absolute (from namespace root), absolute from
the current HLL setting, or relative from the current namespace?
Thanks,
leo
$P0 = get_namespace[;"Foo";"Bar"]
Where the empty part mean "current namespace here." Of course, then
it'd be really confusing because it's the opposite of pathnames on
unix. Although if [;"Foo";"Bar"] is absolute, it makes sense as well
because the default namespace is "unnamed" and it'd be more convenient
than writing ["";"Foo";"Bar].
Absolute. If people want relative lookups, I'd consider adding another opcode:
$P1 = get_namespace # this exists - get the current namespace
$P2 = get_namespace $P1, ["Foo"; "Bar"] # this doesn't - lookup
Foo::Bar in $P1 (the current namespace)
--
matt diephouse
http://matt.diephouse.com