Re: Explicit constructor call and polymorphic dispatch

From: Date: Sun, 15 Jan 2017 17:41:32 +0000
Subject: Re: Explicit constructor call and polymorphic dispatch
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-97764@lists.php.net to get a copy of this message
We discussed this whole thing in different channels and together refined the original idea as well as what the actual problem and a solution would be. The actual problem are multiple calls to the constructor because they break the encapsulation. We know that there are many ways to do so but this is a very weird one. Hence, the proposal will be to disallow **multiple constructor calls**. All examples that were given so far would continue to work. However, the weird examples that were given at the beginning will stop working and result in an error. -- Richard "Fleshgrinder" Fussenegger

« previous php.internals (#97764) next »