in reply to Re: Overloading inherited class methods
in thread Overloading inherited class methods
Duh. That makes sense. Of course, if also pass %ARGS by reference, I don't have to worry about extra argments getting slurped up in the arg list. That's a nice benefit of pass by reference. That's a quick change that I think I'll go make.
Update: Ah, the beauty of test suites. Converting everything took me about two minutes and I can prove that is still works as well as it did :) Thanks for the help!
ok 1 - use Foo::People; ok 2 - Foo::People->can('new') ok 3 - The object isa Foo::People ok 4 - Foo::People->can('open') ok 5 - ... and opening with an existing id should succeed ok 6 - Foo::People->can('get_company_id') ok 7 - ... and it should return the correct company id ok 8 - Calling a constructor with an ID should succeed ok 9 - The object isa Foo::People ok 10 - Foo::People->can('get_company_id') ok 11 - ... and it should return the correct company id ok 12 - Foo::People->can('get_list') ok 13 - ... and it should return an arrayref of people ok 14 - ... as objects: isa Foo::People ok 15 - Foo::People->can('get_company_id')
Cheers,
Ovid
New address of my CGI Course.
Silence is Evil (feel free to copy and distribute widely - note copyright text)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Overloading inherited class methods
by dws (Chancellor) on Dec 04, 2002 at 18:59 UTC | |
by Ovid (Cardinal) on Dec 04, 2002 at 19:11 UTC |