Re: [RFC] Property accessors

From: Date: Tue, 04 May 2021 20:34:08 +0000
Subject: Re: [RFC] Property accessors
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-114277@lists.php.net to get a copy of this message
On 04-05-2021 12:57, Marco Pivetta wrote:
>  * instead of allowing by-ref get declaration, can we just kill it here,
> before it breeds again? I don't think I need to explain the woes of by-ref
> to internals, but removing the ability to declare new accessors by-ref
> would be a huge win for the engine and the language long-term.

Would killing it imply that the following example from the RFC:

    $test->prop[] = 42;

behaves differently depending on 'prop' being either a regular class
property or a property with associated get accessor?

Regards,
Dik Takken


Thread (18 messages)

« previous php.internals (#114277) next »