[RFC] Constant Scalar Expressions (with constants)
| From: | Bob Weinand | Date: | Thu, 07 Nov 2013 12:01:11 +0000 |
| Subject: | [RFC] Constant Scalar Expressions (with constants) | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-70048@lists.php.net to get a copy of this message | ||
Hi!
As you all know, Anthony Ferrara had withdrawn his RFC a few months ago, which was without support
for constants in these expressions:
const foo = 10;
const bar = 10 * foo;
The use of a constant in a declaration of a constant was not yet possible with his patch.
That's what I changed.
Enjoy reading the RFC at:
https://wiki.php.net/rfc/const_scalar_exprs
Bob Weinand
Special thanks go to Dmitry who had helped me a lot with feedback and a deep review of the patch.