Re: [patch] Callbacks bug/change request
| From: | Richard Lynch | Date: | Fri, 01 Jun 2007 22:41:49 +0000 |
| Subject: | Re: [patch] Callbacks bug/change request | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-30033@lists.php.net to get a copy of this message | ||
On Fri, June 1, 2007 12:06 pm, Stanislav Malyshev wrote:
>> You'd probably do something along those lines if it were possible:
>>
>> ((ParentClass) $child)->virtualMethod();
>
> Looks like bad style to me - why not call child's method and it would,
> if needed, pass control to parent?
Or, if, for some reason, you need to bypass the child's method, and
call only the parent's method of the same name, why not just look up
the class->Parent and then use array(Parent, 'function')
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?