in reply to Re: Re: has it been blessed?
in thread has it been blessed?
Comparing the return value from ref to a list of known types is simply the wrong approach. Either you'll forget something, or a new type will be added in a future version and your code will break.
Go with the UNIVERSAL::isa() approach. Really.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: has it been blessed?
by rjray (Chaplain) on Mar 07, 2002 at 20:35 UTC | |
by dragonchild (Archbishop) on Mar 07, 2002 at 20:44 UTC | |
by rjray (Chaplain) on Mar 07, 2002 at 21:54 UTC | |
by dragonchild (Archbishop) on Mar 07, 2002 at 22:19 UTC | |
by chipmunk (Parson) on Mar 08, 2002 at 05:21 UTC |