Skip Menu |

This queue is for tickets about the Digest CPAN distribution.

Report information
The Basics
Id: 18130
Status: resolved
Priority: 0/
Queue: Digest

People
Owner: Nobody in particular
Requestors: adamk [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 1.14
Fixed in: 1.15



Subject: Document the difference between ->add and add_bits, and errors
->add and ->addbits would almost seem to do the same thing, and don't discuss errors. It's hard to work out if I'm using it in the right way... Could you please document in a bit more details exactly what each method does, exactly what each param is allowed or required to be, and what each method does on error. Thanks
On Sun Mar 12 02:22:21 2006, guest wrote: Show quoted text
> ->add and ->addbits would almost seem to do the same thing, and don't > discuss errors.
They don't discuss errors because there are no errors. The add_bits stuff should really be hidden as it's not really of any practical use. It's just supporting some obscure feature of the latest SHA algorithms. I'll look into expanding the docs a bit to make this clearer. --Gisle
Subject: Re: [rt.cpan.org #18130] Document the difference between ->add and add_bits, and errors
Date: Mon, 13 Mar 2006 10:43:15 +1100
To: bug-Digest [...] rt.cpan.org
From: Adam Kennedy <adam [...] phase-n.com>
Well, WRT errors, what happens for example if you call ->add( undef ) or ->add( \"" ) or ->add( sub { foo } )... Adam K Gisle_Aas via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=18130 > > > On Sun Mar 12 02:22:21 2006, guest wrote: >
>>->add and ->addbits would almost seem to do the same thing, and don't >>discuss errors.
> > > They don't discuss errors because there are no errors. The add_bits > stuff should really be hidden as it's not really of any practical use. > It's just supporting some obscure feature of the latest SHA algorithms. > > I'll look into expanding the docs a bit to make this clearer. > > --Gisle