On Thu, May 11, 2000 at 02:03:48AM -0400, [EMAIL PROTECTED] wrote:
> thanx for the patch which seems to work.
Oh good.
> did you add the code for this
> warning or was it just crashing before this happened?
Huh? There was a bug in the code to display the warning.
> Event: package '' doesn't exist (creating) at
>/usr/local/lib/perl5/site_perl/5.005/sun4-solaris/Event/Watcher.pm line 73.
> Event: callback method main->writeable doesn't exist at
>/usr/local/lib/perl5/site_perl/5.005/sun4-solaris/Event/Watcher.pm line 73.
>
> i used your stack traces to find i was passing event.pm objects before
> they were blessed (i blessed them too late). i found 3 or so cases like
> this and fixed them. a better error message would be useful. perhaps
> some caller info of the outside sub which called event.pm.
Yah. Warnings are somewhat in flux due to the new lexicals warnings.
I'm not sure whether lexical warnings interface into Carp.
> also theoretically a method doesn't have to exist at the watcher
> creation time. it could be autoloaded or dynamically created after the
> wather but before it can get activated.
Yes, of course.
> it is a good test though and
> will more likely find my kind of bug than anything else. maybe it could
> be disabled (lexical warnings?) so you could do something weird if
> desired (i wouldn't do anything like dynamic callback methods!)
Yes.
--
"May the best description of competition prevail."
via, but not speaking for Deutsche Bank