John Imrie wrote: > On 28/12/2015 01:01, Father Chrysostomos wrote: > > But that is exactly how symbols are exported (assuming you mean * > > rather than *). Normalization for hash access (which is how we would > > have to do this), even if it is limited to stashes, would be an effic- > > iency nightmare. > > I was > hoping that we could do the normalisation on insert into the stash. So > that the stash it's self was normalised. This would make it a compile > time operation, or one hit for each symbol you are exporting. I don't > know enough of the Perl internals as to why this would have to be on > access rather than insert. If the string "whatever" used to ask for the symbol, as in use Foo "whatever"; is not normalised, but *Foo::whatever is stored in the *Foo:: stash normalised, then the symbol lookup that happens at run time every time the symbol is exported will at some point have to normalise the name provided by the caller.Thread Previous | Thread Next