From: Chris W. <ch...@cw...> - 2003-12-19 00:49:01
|
On Dec 18, 2003, at 6:58 PM, Vsevolod (Simon) Ilyushchenko wrote: > Another nitpick: after using AUTOLOAD in subclasses of objects owning > SPOPS objects (don't ask :) I found out that the can() method of SPOPS > objects does not return true if you give it the autodiscovered column > name. It would be neat if it did. Does it work once you call the parameter? That is, if you do: SPOPS::Initialize->process( ... ); my $foo = Foo->new(); print "Can it before? ", $foo->can( 'bar' ) ? 'yes' : 'no', "\n"; $foo->bar( 'baz' ); print "Can it after? ", $foo->can( 'bar' ) ? 'yes' : 'no', "\n"; It should print out: Can it before? no Can it after? yes I agree that they should both say 'yes' and I'll see about making that happen. Later, Chris -- Chris Winters Creating enterprise-capable snack systems since 1988 |