Skip Menu |

This queue is for tickets about the Digest-Whirlpool CPAN distribution.

Report information
The Basics
Id: 17613
Status: resolved
Priority: 0/
Queue: Digest-Whirlpool

People
Owner: Nobody in particular
Requestors: hata [...] iname.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.0.3
Fixed in: (no value)



Subject: Another Interface Incompatibility
The standard interface of Digest class is that many of methods return its object (ref). Digest::Whirlpool seems not. For example, such an OO style expression may be allowd: $whirlpool = $obj->new->reset->addfile(*FILE)->hexdigest; --Thanks your job!
Subject: TYPO in the example
Show quoted text
> $whirlpool = $obj->new->reset->addfile(*FILE)->hexdigest;
$obj = Digest::Whirlpool->new; $whirlpool = $obj->reset->addfile(*FILE)->hexdigest;
On Mon Feb 13 03:56:07 2006, guest wrote: Show quoted text
> The standard interface of Digest class is that many of methods return > its object (ref). Digest::Whirlpool seems not. > > For example, such an OO style expression may be allowd: > > $whirlpool = $obj->new->reset->addfile(*FILE)->hexdigest; > > --Thanks your job!
This has been fixed in version 1.0.4, Digest::Whirlpool is now subclasses Digest::base and is fully compatable with the standard interface.