>>>>> "DN" == Damien Neil <[EMAIL PROTECTED]> writes:
DN> On Wed, May 30, 2001 at 10:17:45PM -0400, Uri Guttman wrote:
DN> The following program segfaults after one second (when the watcher
DN> triggers):
>>
>> so don't do that. it is kinda silly even if it worked. you stop the
>> watcher and then delete it.
DN> Are you telling me that you consider it acceptable behavior for
DN> Perl to segfault if I do this?
well, it still is incorrect coding. there is no defined meaning for
deleting the callback before you have stopped the watcher. why did you
even try that? it makes no sense.
it happens to be a bug in the event.pm module in that it shouldn't do a
callback through a null pointer. making the watcher shut down if the
callback is deleted is a different and not as good a solution.
uri
--
Uri Guttman --------- [EMAIL PROTECTED] ---------- http://www.sysarch.com
SYStems ARCHitecture and Stem Development ------ http://www.stemsystems.com
Learn Advanced Object Oriented Perl from Damian Conway - Boston, July 10-11
Class and Registration info: http://www.sysarch.com/perl/OOP_class.html