develooper Front page | perl.perl5.porters | Postings from September 2012

Re: Length magic should die ([perl #114690] Bleadperl v5.17.3-204-g864329cbreaks VPIT/Variable-Magic-0.51.tar.gz)

Thread Previous | Thread Next
From:
Vincent Pit
Date:
September 26, 2012 09:08
Subject:
Re: Length magic should die ([perl #114690] Bleadperl v5.17.3-204-g864329cbreaks VPIT/Variable-Magic-0.51.tar.gz)
Message ID:
5063285E.1090207@profvince.com

> Even if we fix length magic to set the utf8 flag we will still have a
> problem with get-magic being called too many times in those cases where
> length magic falls back to get-magic.  There is no way to tell
> afterwards whether length magic resorted to get-magic or not.

One possible solution would be to replace mg_length() by a new 
mg_length_flags() function that would take a 'flags' parameter telling 
it whether it can call 'get' magic if no 'len' magic is available. I'm 
not sure it's worth the trouble though.


Vincent

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