Re: perl pragma [PATCH]
by Tels other posts by this author
May 23 2007 12:28PM messages near this date
Re: perl pragma
|
Re: perl pragma [PATCH]
Moin,
On Wednesday 23 May 2007 18:49:26 Joshua ben Jore wrote:
> On 5/23/07, Tels <nospam-abuse@[...].com> wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
>
> overloading constants was already a lexical pragma so I don't think
> you need to use the new hintshash in 5.9.x's caller(). You can just
> call overload::constant from your import and overload::remove_constant
> from your unimport method.
Okay, it's done. bignum et. al. are now real pragmas. And it was easier than
I thought. The only downside is that the new in_effect() routine will only
work with Perl v5.9.4 or better, but this isn't that important, anyway, and
maybe somehow we can later make it work for older Perl's, too.
In addition to making them pragmas, I also fixed the problem that you
couldn't do:
use bigint;
use bignum;
without getting warned that "inf" and "NaN" got redefined. There isn't much
sense in actually doing it, but then, there doesn't seem to be any harm,
either.
Please find attached a patch to blead, and note that this patch adds 4 new
test files.
All the best,
Tels
--
Signed on Wed May 23 21:32:43 2007 with key 0x93B84C15.
Get one of my photo posters: http://bloodgate.com/posters
PGP key on http://bloodgate.com/tels.asc or per email.
"Build a man a fire, and he'll be warm for a day. Set a man on fire, and
he'll be warm for the rest of his life."
-- Terry Pratchett
Thread:
Tels
Rafael Garcia-Suarez
Tels
Joshua ben Jore
Tels
Rafael Garcia-Suarez
Tels
Tels
|