Re: [CAUTION] Thread-saving modules

2002-07-29 Thread Elizabeth Mattijsen
At 04:23 PM 7/27/02 +0100, [EMAIL PROTECTED] wrote: >Elizabeth Mattijsen <[EMAIL PROTECTED]> writes: > > >I usually just call UNIVERSAL::isa($_[0], 'your::class::name') in > these cases. > >return unless UNIVERSAL::isa( $_[0],__PACKAGE__ ); >Don't you still have a 'subclass problem? Consider

Re: [CAUTION] Thread-saving modules

2002-07-28 Thread pdcawley
Elizabeth Mattijsen <[EMAIL PROTECTED]> writes: > At 04:03 AM 7/23/02 +1000, Ken Williams wrote: > >> return unless ref($_[0]); > >I usually just call UNIVERSAL::isa($_[0], 'your::class::name') in these cases. > > That's a good tip. > > I actually generalized this to: > >return unless UN

Re: [CAUTION] Thread-saving modules

2002-07-22 Thread Elizabeth Mattijsen
At 04:03 AM 7/23/02 +1000, Ken Williams wrote: >> return unless ref($_[0]); >I usually just call UNIVERSAL::isa($_[0], 'your::class::name') in these cases. That's a good tip. I actually generalized this to: return unless UNIVERSAL::isa( $_[0],__PACKAGE__ ); This will be implemented in Thr

Re: [CAUTION] Thread-saving modules

2002-07-22 Thread Ken Williams
On Monday, July 22, 2002, at 04:22 AM, Elizabeth Mattijsen wrote: > You should therefore _always_ check the validity of the first value > passed to DESTROY and make sure it is what you expect it to be. If you > don't, you're looking at indeterminate (strange) execution errors or > segfaults.

Re: [CAUTION] Thread-saving modules

2002-07-21 Thread Arthur Bergman
Huh, Huh Huh I think I will find this is not really a threads bug, will look at it. Arthur On söndag, juli 21, 2002, at 08:22 , Elizabeth Mattijsen wrote: > This may be of interest to module authors who are looking at making > their modules thread-safe. This is particularly important if yo