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

[PATCH] Improve run-time overloading documentation

From:
Shawn M Moore
Date:
April 22, 2011 15:43
Subject:
[PATCH] Improve run-time overloading documentation
Message ID:
4DB1F839.90604@gmail.com
The overload.pm documentation suggests eval "use overload ..." to 
achieve run-time overloading. The heavy hammer of string eval for this 
purpose is kind of silly. Instead I suggest the deconstruction of the 
"use" and "no" into require then overload->import or overload->unimport 
directly, much like we describe in perlpragma.

The second patch adds me to AUTHORS. :)

See also: http://grep.cpan.me/?q=overload-%3E%28un%29%3Fimport
and: http://grep.cpan.me/?q=eval%5Cs*%22%28use%7Cno%29%5Cs%2Boverload

Thanks,
Shawn



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