Re: [RFC] Default constructors

From: Date: Thu, 20 Nov 2014 10:25:12 +0000
Subject: Re: [RFC] Default constructors
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-79032@lists.php.net to get a copy of this message
Hi Stas, Sorry, I didn't follow all the discussions. I think the idea is good. I'm not sure about implementation. Additional check for ZEND_NULL_FUNCTION in DO_FCALL may be expensive. I think it must be better to use special predefined function (see "zend_pass_function" usage in zend_vm_def.h). Thanks. Dmitry. On Tue, Nov 18, 2014 at 12:20 PM, Stanislav Malyshev <smalyshev@gmail.com> wrote: > 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 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.internals (#79032) next »