At 11:58 AM -0700 9/28/04, Jeff Clites wrote:
On Sep 28, 2004, at 11:26 AM, Chip Salzenberg wrote:

According to Jeff Clites:
top-level namespace (say this is namespace #1):
{
        variables => { Foo => <PerlScalar PMC (or whatever)> },
        namespaces => { Foo => <PerlNamespace PMC, call namespace #2> }
}

I think I get it. You're replacing sigil characters and associated name mangling, turning it into explicit named categories, thus avoiding lots of anticipated string tricks.

Yep, exactly. And it works for Perl, but also fits languages which don't have a built-in mangling-via-sigils, yet still have different categories (like Common Lisp, which allows functions and variables of the same name).

And unfortunately dies a horrible death for languages that don't categorize the same way as perl. :( As well as being really inconvenient for those variables that can express multiple classes of behaviours simultaneously.


This one, alas, I'm going to shoot down.
--
                                Dan

--------------------------------------it's like this-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to