Re: [RFC] Default constructors

From: Date: Tue, 18 Nov 2014 12:35:19 +0000
Subject: Re: [RFC] Default constructors
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-78940@lists.php.net to get a copy of this message
Hello :-), Is it not simpler to create a super-object whom all objects are children of? Something similar to the Java Object? Cheers :-). Le 18/11/2014 10:20, Stanislav Malyshev a écrit :
Hi! I'd like to propose the following RFC, which in short would allow any method to call parent ctor (and some other methods) even if such is not explicitly defined: https://wiki.php.net/rfc/default_ctor The reasons are outlined in detail in the RFC and here: http://php100.wordpress.com/2014/11/04/default-constructors/ The patch is not finished yet but seems to be working fine, I'll add it to the RFC this week as soon as I finish it. I'd like to put idea out there in the meantime and hear what everybody thinks about it. Thanks, Stas
-- Ivan Enderlin Developer of Hoa http://hoa-project.net/ PhD. at DISC/Femto-ST (Vesontio) and INRIA (Cassis) http://disc.univ-fcomte.fr/ and http://www.inria.fr/ Member of HTML and WebApps Working Group of W3C http://w3.org/

« previous php.internals (#78940) next »