Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the FSA-Rules CPAN distribution.

Report information
The Basics
Id: 14009
Status: resolved
Priority: 0/
Queue: FSA-Rules

People
Owner: Nobody in particular
Requestors: xavier.caron [...] rfo.atmel.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.21
Fixed in: 0.22



Subject: reset method should also clear done status
Perl is v5.8.7, box is SunOS v5.7. I had to do: $fsa->reset; $fsa->done(0); instead of plain: $fsa->reset; Because reset method does not clear done flag.
From: David Wheeler <david [...] kineticode.com>
Subject: Re: [cpan #14009] reset method should also clear done status
Date: Mon, 8 Aug 2005 08:43:33 -0700
To: bug-FSA-Rules [...] rt.cpan.org
RT-Send-Cc:
On Aug 3, 2005, at 11:56 PM, Guest via RT wrote: Show quoted text
> I had to do: > $fsa->reset; > $fsa->done(0); > instead of plain: > $fsa->reset; > Because reset method does not clear done flag.
Well, actually, this would be somewhat hard to do, because you can actually configure done() with a code reference. So we could reset done if it wasn't a code reference easily enough, but if it is a code reference, we wouldn't want to replace it. Hrm, and internally, done is always a code reference, so I'm not sure how I'd change it...okay, I'll make it so that it's not always a code reference, and reset done to C<undef> when it's not. If a user sets it to a code reference, hopefully that code reference will be smart enough to know when its done, eh? I'll get a new release out shortly. Best, David