develooper Front page | perl.perl5.porters | Postings from November 2011

Re: RFC: Autoloading charnames

Thread Previous | Thread Next
Karl Williamson
November 27, 2011 16:02
Re: RFC: Autoloading charnames
Message ID:
On 11/27/2011 03:43 PM, Ricardo Signes wrote:
> * Karl Williamson<>  [2011-11-27T17:30:08]
>> I had prototyped #1  some time ago.  I used a simple solution to
>> avoid importing the functions, and that was to use  undocumented
>> mangled names for the function definitions in (simply
>> prefixing them with an underscore, but further mangling could be
>> done), and then in the import method, doing
>> *charnames::viacode = *_viacode;
>> *charnames::vianame = *_vianame;
>> *charnames::string_vianame = *_string_vianame;
>> Is this acceptable, or is a sub-module really needed?
> Won't this break (for example) Unicode::UCD, which does "use charnames ()" but
> then calls charnames::viacode?
> That seems like a pattern we might find other places, too. is
> down, but I found more than zero results with:

Doh!  It's been long enough since I wrote this prototype that I forgot I 
never ran it through the test suite.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About