> From: Dan Sugalski [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 16, 2003 6:56 AM > To: [EMAIL PROTECTED] > Subject: Namespaces, part 2 > > load_global $P1, ['foo'; 'bar'] '$baz' > load_global $P2, ['foo'; 'bar'] '$xyzzy'
I'm not at all familiar with the intricacies of Parrot internals anymore, things having gone flying over my head long ago, but may I humbly suggest that there might be some merit to creating some kind of shortcut to a namespace stored in a Px register? load_namespace $P1, ['foo'; 'bar'] load_global $P2, $P1, '$baz' Might be a good place to specialize the code for language constructs like Python's from module import * Or something Perl6-ish involving "given". Subsequent "load_global" usage wouldn't have to do the work of actually finding that 'foo::bar' namespace each time. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.545 / Virus Database: 339 - Release Date: 11/27/2003