RE: [PHP-DEV] [RFC] Constant Scalar Expressions

From: Date: Wed, 14 Aug 2013 11:13:16 +0000
Subject: RE: [PHP-DEV] [RFC] Constant Scalar Expressions
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-68513@lists.php.net to get a copy of this message
Am 14.08.2013 13:03 schrieb "Derick Rethans" <derick@php.net>: > > On Wed, 14 Aug 2013, Patrick Schaaf wrote: > > > Would this allow using constants, too? Class constants? > > > > const FOO = 1; > > const BAR = self::FOO + 1; > > Those are not constants, but expressions which can't be run during > compile time. Understood now. Constants are not constants. Is there a general consensus that just-in-time at-runtime initialization in these places (as well as for property initializers) is not possible or desired - or is that just something that would need a lot of thought and work? best regards Patrick

« previous php.internals (#68513) next »