Re: [RFC] Constant Scalar Expressions (with constants)

From: Date: Thu, 07 Nov 2013 13:27:32 +0000
Subject: Re: [RFC] Constant Scalar Expressions (with constants)
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-70059@lists.php.net to get a copy of this message
Am 7.11.2013 um 14:19 schrieb Patrick Schaaf <bof@bof.de>: > Am 07.11.2013 14:12 schrieb "Nikita Popov" <nikita.ppv@gmail.com>: >> >> Once again, the code you posted is already supported, not really part of > this proposal. > > Blush. I'm still sitting at 5.4.x :) That's no excuse :-P The only thing that RFC introduces are operations on constants and constant values on definitions of constants/properties/statics. Not more. >> And yes, it will invoke the autoloader, see > http://codepad.viper-7.com/2Xz8ux :) > > "Interesting" line number in that error message..... Yes, class constants are evaluated upon their first use. Bob > > best regards > Patrick

« previous php.internals (#70059) next »