On Sun, Apr 6, 2008 at 10:30 AM, Bob Rogers <[EMAIL PROTECTED]> wrote: > From: Bob Rogers <[EMAIL PROTECTED]> > Date: Sun, 6 Apr 2008 13:25:33 -0400 > > > > From: chromatic <[EMAIL PROTECTED]> > Date: Sun, 6 Apr 2008 09:52:34 -0700 > > ... compounded by the fact that I can't seem to get any of the existing > namespace ops to do what I want in a concise, non-hacky way. What am I > missing? > > I notice that changing "get_root_namespace" to "get_hll_namespace" makes > the code you posted work. That seems completely backwards, though, so I > can't say that I understand it either . . . > > Aha! It's because they're both in the default "HLL", the namespace for > which is called "parrot". So this also works: > > test_namespace = get_root_namespace [ 'parrot'; 'Test'; 'More' ] > > Not sure if that's any more intuitive, though. > by default, everything you write in pir is in the [ 'parrot' ] hll namespace. therefore, get_root_namespace [ 'parrot', 'Foo' ] is equivalent to get_hll_namespace [ 'Foo' ] unless there's been a previous HLL directive for the non-default hll.
clear as mud? ~jerry