develooper Front page | perl.perl5.porters | Postings from January 2001

Re: [PATCH 5.7.0] overload int()

Thread Previous | Thread Next
From:
Jarkko Hietaniemi
Date:
January 26, 2001 20:31
Subject:
Re: [PATCH 5.7.0] overload int()
Message ID:
20010126223115.J22333@chaos.wustl.edu
On Wed, Jan 24, 2001 at 07:06:57PM -0500, Ilya Zakharevich wrote:
> Some arithmetic algos do not work with overloading, since there is
> more arithmetic operation which was not overloaded: int().  This patch
> closes this hole.
> 
> When putting things in BigFloat to test it more, I thrown in :constant
> key for 'use Math::BigFloat', so now it behaves as Math::BigInt.
> 
>   perl -MMath::BigFloat=:constant -wle 'print 2*1427247692705959881058285969449495136382746624.'
>   2854495385411919762116571938898990272765493248.
> 
> Enjoy,
> Ilya
> 
> --- ./perl.h~	Tue Jan 16 20:44:51 2001
> +++ ./perl.h	Wed Jan 24 15:21:04 2001

Ooops, I forgot to check in some parts of this, sorry.  That blunder
might explain the lib/big*pm.t failures people have been getting recently.

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

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