Re: [RFC] [VOTE] Constant scalar expressions

From: Date: Wed, 20 Nov 2013 17:55:16 +0000
Subject: Re: [RFC] [VOTE] Constant scalar expressions
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-70240@lists.php.net to get a copy of this message
Am 20.11.2013 um 18:43 schrieb Rouven Weßling <me@rouvenwessling.de>: > Hello Bob, > > I know I'm late (and have no voting right) but O wonder how this interacts with. > > a) Constants defined in a different file > b) Constants defined using the define() function. > > I couldn't find either case in the RFC or the previous discussion. > > Best regards > Rouven > >> On 20.11.2013, at 17:54, Bob Weinand <bobwei9@hotmail.com> wrote: >> >> Hi, >> >> I just have moved the RFC to vote as there was no negative feedback nor unresolved issues. >> >> Find the vote (and the RFC) at: >> >> https://wiki.php.net/rfc/const_scalar_exprs#vote >> >> Vote will last for one week. >> >> Bob No top posting please :-) Constant evaluation order is not changed in this RFC. So, like const A = B; const B = 10; results in constant A being a string(1) "B", this RFC shows the same behavior: const A = B."1"; const B = 10; results in constant A being string(2) "B1". Using a more lazy constant evaluation is not in the scope of this RFC. Bob

« previous php.internals (#70240) next »