Re: Composition over inheritance: native support for "delegating" methods?

From: Date: Mon, 22 Oct 2018 19:01:04 +0000
Subject: Re: Composition over inheritance: native support for "delegating" methods?
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-103371@lists.php.net to get a copy of this message
On 22/10/2018 14:38, Larry Garfield wrote:
Sometimes when proxying to an object like that, you're supposed to return $this, but your $this is different than the proxied object's $this.
Hm, that's a very interesting limitation. I wonder if there's some way to include common manipulations like this in the syntax, while still feeling more convenient than writing out the whole method signature. Regards, -- Rowan Collins [IMSoP]

« previous php.internals (#103371) next »