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

Re: RFC: Autoloading charnames

Thread Previous | Thread Next
From:
Ricardo Signes
Date:
November 27, 2011 14:43
Subject:
Re: RFC: Autoloading charnames
Message ID:
20111127224315.GA32726@cancer.codesimply.com
* Karl Williamson <public@khwilliamson.com> [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 charnames.pm (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.  grep.cpan.me is
down, but I found more than zero results with:

  http://www.google.com/codesearch#search/&q=%22use%20charnames%20%28%29%22%20lang:perl&p=1&type=cs

-- 
rjbs

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