Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88674 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28856 invoked from network); 5 Oct 2015 07:48:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Oct 2015 07:48:46 -0000 Authentication-Results: pb1.pair.com header.from=gdelamarre@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=gdelamarre@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.182 as permitted sender) X-PHP-List-Original-Sender: gdelamarre@gmail.com X-Host-Fingerprint: 209.85.212.182 mail-wi0-f182.google.com Received: from [209.85.212.182] ([209.85.212.182:34663] helo=mail-wi0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 06/60-25903-C5B22165 for ; Mon, 05 Oct 2015 03:48:45 -0400 Received: by wicfx3 with SMTP id fx3so106543532wic.1 for ; Mon, 05 Oct 2015 00:48:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:subject:date:message-id:to:mime-version; bh=Z0lq9160twQuqibWWH6ufeX635GfmgZ6Llve+hbqQCk=; b=a4ifpxqOJljAVXHE5Z7C+QGxbZ6Bb3iGFM4n8KSW8ZdwfHLCRBWBNYgtFhEvZbJEcb jmOB6ra+w9StjAgWccWQjP6Z32A/9tmHaiZumpG9mp8ng0O8ikA0GTypRlMHJ514ato2 Y6GPZzZ46S9bvQnOQTo3Bo5QkxSGuWH6vKGnXKYAZbeUtJtA2z9tVM81B4TkKfgABtta ohuwyDXm86r7TUq+3rmTaWHoaiudeQHrT5EObTsqweWwFd+kV+9T959C3LoduICuzMX7 ee767kf8ikPtWYNPobTGuJN65ucdlgvciXmpLPerFbj6vdKeBWt/D2lCruyqMo5Im46S 29Ng== X-Received: by 10.194.185.16 with SMTP id ey16mr33475530wjc.32.1444031321848; Mon, 05 Oct 2015 00:48:41 -0700 (PDT) Received: from [192.168.0.205] ([85.95.194.243]) by smtp.gmail.com with ESMTPSA id fz1sm13173457wic.8.2015.10.05.00.48.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 05 Oct 2015 00:48:41 -0700 (PDT) X-Pgp-Agent: GPGMail 2.6b2 Content-Type: multipart/signed; boundary="Apple-Mail=_B0B96DEB-76E7-4974-9E50-04C54A7A994E"; protocol="application/pgp-signature"; micalg=pgp-sha512 Date: Mon, 5 Oct 2015 09:48:36 +0200 Message-ID: <3104236D-36EB-40C1-A175-F225E9A3C927@gmail.com> To: internals@lists.php.net Mime-Version: 1.0 (Mac OS X Mail 9.0 \(3094\)) X-Mailer: Apple Mail (2.3094) Subject: clone and new language construct consistency From: gdelamarre@gmail.com (Gauthier Delamarre) --Apple-Mail=_B0B96DEB-76E7-4974-9E50-04C54A7A994E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 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 = should create one myself or if I just didn=E2=80=99t find it :) Thanks, Gauthier --Apple-Mail=_B0B96DEB-76E7-4974-9E50-04C54A7A994E Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJWEitYAAoJEFANE+zEUdFCT7wQAI7Wio1WNqk0GnAi2F9dEYy3 /T2/W7tw8lYLkyHMYKnckyWZ7btgClZ7xb/QEAPEVoXPxpdlR/tKL4O34rhee8V+ PxC+PzvNlGTIYI3UKoSFLWJkxYyaB9cL/ety+RH+riP2JWzmuc2FOlB9VJ/ySDuo if3kZLO9ZSRm01neVuxDVDY48uP2dEoFPfsQztJt6Ainpf/AY2KMPg06tXSBe4k6 FuYThmSGYeWctCq8H3DOiA12huUEIq8tk0p2wKvUG9lFHLooF3ZGb4EPwg/6L9b7 c2A5r7kKh0aFYZ0NiZBoxHU81ljFF+cc4LkdFZk1mZJEprF8xVyhB5b56GJ2NqML VuCs7QhnV0kNSMdhvhqL/8MKZN02mwmxy4vA9ptHZ5aBksYXgCkqVeYvMSerDTya 2vNdSYr/ICxnT5rfP9wEAwCnWXjxHrn/rB8lBC/jumIeUz+UAImhJovQWTAbtSWC WYaJoYGJtEswnR11eDawYSTqej54MmnQ3xlwRNiMgUoh6HjZDAOs1sUutrlIiVFG HDrRRlU+sRLI/jNnB4Z1vObhZre0vg4kPJf3jwUuF4thAGb1zx3l9KPoRelbzKZV oV9SgUfr0v5DH6hDIkUsJimPkyg/bGubtK2sDsN/JilhV7ITI+Pu6rP56d+rwJyO jj3USozuazM1Ub8Ih4J0 =ragj -----END PGP SIGNATURE----- --Apple-Mail=_B0B96DEB-76E7-4974-9E50-04C54A7A994E--