develooper Front page | perl.perl5.porters | Postings from October 2003

Re: [PATCH bleadperl] [perl #24313] (was Re: [PATCH lib/overload.t] TODO tests for bug #24313.)

Thread Previous
From:
Rafael Garcia-Suarez
Date:
October 28, 2003 01:52
Subject:
Re: [PATCH bleadperl] [perl #24313] (was Re: [PATCH lib/overload.t] TODO tests for bug #24313.)
Message ID:
20031028105125.19e9ded4.rgarcia@hexaflux.com
Rick Delaney wrote:
>
> On Mon, Oct 27, 2003 at 01:05:37PM +0100, Abigail wrote:
> > 
> [snip tests]
> 
> The original bug is "Can't overload numeric constant 0.", specifically
> with overload::constant('integer').  This is because a plain "0" is
> being treated as a binary constant.  The following patch treats a plain
> zero as an integer constant under overload::constant('integer').  For
> backwards compatibility it will still treat it as a binary constant
> under overload::constant('binary') but if both are specified 'integer'
> takes precedence.

Thanks, applied as #21566, with Abigail's deTODOified tests.

> --- toke.c.orig	Mon Oct 27 11:04:56 2003
> +++ toke.c	Mon Oct 27 12:00:13 2003

Thread Previous


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