Thomas Seiler <[EMAIL PROTECTED]> wrote: > For those languages that support native Hashes, it should be relatively > simple to give the user direct access to a Namespace PMC as if it would > be a native Hash, (all it needs is a Hash-vtable, maybe a Namespace PMC > should be just a Hash)...
Well, "the give the user direct access" thingy isn't in our scope. The HLL semantics define that or not. For Python it's a must: >>> glob = {'foo' : 1} >>> loc = {} >>> exec 'bar = foo + 1' in glob, loc >>> loc {'bar': 2} >>> This is passing the global namespace "glob" and the local namespace "loc" to the "exec" statement. Both are plain hashes. After executing that line of code, the local namespace has a new entry "bar". > #Python_on_Parrot Library function using inline PASM That's not an option, there are many Python implementations out in the wild. Having to change sourcecode for running on Parrot isn't the way to go. leo