develooper Front page | perl.perl5.porters | Postings from December 2015

Re: Obsolete text in utf8.pm

Thread Previous | Thread Next
From:
Father Chrysostomos
Date:
December 28, 2015 16:47
Subject:
Re: Obsolete text in utf8.pm
Message ID:
20151228164740.5842.qmail@lists-nntp.develooper.com
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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About