Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88675 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30358 invoked from network); 5 Oct 2015 07:51:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Oct 2015 07:51:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.174 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.212.174 mail-wi0-f174.google.com Received: from [209.85.212.174] ([209.85.212.174:32924] helo=mail-wi0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2D/B0-25903-50C22165 for ; Mon, 05 Oct 2015 03:51:34 -0400 Received: by wiclk2 with SMTP id lk2so107164459wic.0 for ; Mon, 05 Oct 2015 00:51:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=2q2zziJ6zOg+TA61was69A5jzCoDv6QZuHDGLs9iSPE=; b=pwD9OTKP7iFwhs8DjXlSmb59scKlzpJeQM+dP64To89r0f/DD2Tp27SENp4D/yseNq Aq35KJKdzlV4Z1oIjNWAR0RYAQGiEpYt0JWkVXt6E+qp7SuauglN9xpAyztMapoybhKa lZ314yC+SWRihWKbW1JLJ9BDfdz151I4x60QJXlxXhyyHUG6xF9BnL40Smlfz7l53bae LFSKK5x50m8ScG07+FSjIKsKBQc0rVzJ1NgPGSXjNP4BgumocVSMOdNXiL0XB1YAwQUm oSzKsiDs0JSt6eEyqdi0HelDE/l4zCZTF0mJ8ubUfs7RN/59c9Q0vkMNYZwoRxWUwgn2 OCLA== MIME-Version: 1.0 X-Received: by 10.194.206.38 with SMTP id ll6mr29048321wjc.116.1444031490278; Mon, 05 Oct 2015 00:51:30 -0700 (PDT) Received: by 10.27.26.88 with HTTP; Mon, 5 Oct 2015 00:51:30 -0700 (PDT) In-Reply-To: <3104236D-36EB-40C1-A175-F225E9A3C927@gmail.com> References: <3104236D-36EB-40C1-A175-F225E9A3C927@gmail.com> Date: Mon, 5 Oct 2015 09:51:30 +0200 Message-ID: To: Gauthier Delamarre Cc: PHP internals Content-Type: multipart/alternative; boundary=047d7ba9801c05d0d8052156c8df Subject: Re: [PHP-DEV] clone and new language construct consistency From: nikita.ppv@gmail.com (Nikita Popov) --047d7ba9801c05d0d8052156c8df Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, Oct 5, 2015 at 9:48 AM, Gauthier Delamarre wrote: > Hi all, > > I once suggested to some core developers to offer =C2=AB clone =C2=BB the= same > syntax as =C2=AB new =C2=BB has since 5.4. > > The idea being to be able to write this kind of code: > > $foo =3D new Foo; > $bar =3D (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=E2=80=99t find any RFC for that, I was wondering whether I shoul= d create > one myself or if I just didn=E2=80=99t find it :) > Support for this was part of the UVS RFC ( https://wiki.php.net/rfc/uniform_variable_syntax), so this will work in PHP 7 :) Nikita --047d7ba9801c05d0d8052156c8df--