Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76514 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59798 invoked from network); 14 Aug 2014 11:30:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Aug 2014 11:30:24 -0000 Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.17.20 as permitted sender) X-PHP-List-Original-Sender: cmbecker69@gmx.de X-Host-Fingerprint: 212.227.17.20 mout.gmx.net Received: from [212.227.17.20] ([212.227.17.20:59611] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1E/13-40673-FCD9CE35 for ; Thu, 14 Aug 2014 07:30:24 -0400 Received: from [192.168.0.101] ([91.67.244.80]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MK0bZ-1XH3ks3swv-001Pjq; Thu, 14 Aug 2014 13:30:20 +0200 Message-ID: <53EC9DD3.7000404@gmx.de> Date: Thu, 14 Aug 2014 13:30:27 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Alain Williams , Michael Wallner CC: internals@lists.php.net References: <3F1B2834-3939-4F86-86E0-207D2CE469D6@ajf.me> <20140814093338.GY11050@phcomp.co.uk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:4r1dk9DEow6rvaguYjoo/gyWKxWSJcr4Kb2USTDozxf9L1tipH6 K9fTZZUATwLoLqUVLaqmYbiMYlok5MYwzhWFsDeRQqIPUnAbXZ6LPfrzABhMOglNgYwl7uk Q1qG0gnR1LxUuY4ojgIaAe96SQ93Me6loOLUrPqSz2QanFYxuTN95rkbsh24/EniQMhX8Rf yZ7EHFcTeLo/ZRGG7Dl1A== X-UI-Out-Filterresults: notjunk:1; Subject: Re: [PHP-DEV] [RFC] Introduce Abstract Syntax Tree From: cmbecker69@gmx.de (Christoph Becker) Michael Wallner wrote: > On 14 08 2014, at 11:33, Alain Williams wrote: > >> It is OK to define some things as undefined and have them break between releases - >> even minor releases. I always teach it as undefined - as it is in most >> programming languages. >> >> Likewise, if the next 2 characters on input are 'a' then 'b' what gets assigned >> could either be 'ab' or 'ba': >> >> $TwoChars = fgetc($in) . fgetc($in); >> >> Some code is just broken. > > Wat? No. This is totally different to two in/decrements on one line. This has to be executed in order. The current specification draft says[1]: | Unless stated explicitly in this specification, the order in which | the operands in an expression are evaluated relative to each other is | unspecified. | [...] | Finally, in the full expression f() + g() * h(), the order in which | the three functions are called, is unspecified). [1] -- Christoph M. Becker