rfc:const_scalar_exprs
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
rfc:const_scalar_exprs [2013/11/03 13:54] – [Supported Operands] bwoebi | rfc:const_scalar_exprs [2013/11/28 14:34] – normalize status line nikic | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== PHP RFC: Constant Scalar Expressions ====== | ====== PHP RFC: Constant Scalar Expressions ====== | ||
- | * Version: 0.1 | ||
* Date: 2013-11-03 | * Date: 2013-11-03 | ||
* Author: Bob Weinand < | * Author: Bob Weinand < | ||
- | * Status: | + | * Status: |
* First Published at: https:// | * First Published at: https:// | ||
* This is a follow-up to https:// | * This is a follow-up to https:// | ||
Line 141: | Line 140: | ||
static $a = 1 + 1; | static $a = 1 + 1; | ||
static $b = [1 << 2]; | static $b = [1 << 2]; | ||
- | static $c = 0x01 & BAR; | + | static $c = 0x01 | BAR; |
} | } | ||
?> | ?> | ||
Line 157: | Line 156: | ||
An implementation based off of current master is available: [[https:// | An implementation based off of current master is available: [[https:// | ||
+ | |||
+ | The patch is ready to be merged. (Opcache support is included, thanks to Dmitry) | ||
+ | |||
+ | ===== Note on implementation ===== | ||
+ | |||
+ | The implementation of the scalar expressions is based on an AST. That AST implementation eventually could be used later as a general-purpose AST for compiler with a few tweaks. | ||
+ | |||
+ | ===== Vote ===== | ||
+ | |||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
+ | |||
+ | The vote started the 20th November 2013 and ended the 27th November 2013. |
rfc/const_scalar_exprs.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1