clone and new language construct consistency

From: Date: Mon, 05 Oct 2015 07:48:36 +0000
Subject: clone and new language construct consistency
Groups: php.internals 
Request: Send a blank email to internals+get-88674@lists.php.net to get a copy of this message
Hi all, I once suggested to some core developers to offer « clone » the same syntax as « new » has since 5.4. The idea being to be able to write this kind of code: $foo = new Foo; $bar = (clone $foo)->someMethod(); It seemed that this would not be that difficult to implement, and I was told that a RFC will be created for that purpose. As I can’t find any RFC for that, I was wondering whether I should create one myself or if I just didn’t find it :) Thanks, Gauthier

Attachment: [application/pgp-signature] Message signed with OpenPGP using GPGMail signature.asc
« previous php.internals (#88674) next »