On Thu, 30 Sep 2004, TOGoS wrote: > With this method, the *only* place you'll run into > trouble is in a language where any string can be a > variable identifier. [...] > > You could solve this by declaring that *all* variables > in a namespace must begin with some sort of sigil, but > then you can't pass a namespace to a function and have > it be treated like a plain ole' associative array (or > at least one with nice keys).
Why not put the sigil prefix in a separate parameter to the relevant fetch and store opcodes, as a simple quoted literal string? Then you wouldn't have to generate extra temporary strings to hold the concatenations, but where you did have a string that included the appropriate sigil, it could be used directly by having an empty prefix. -Martin