rfc:class_const_visibility
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:class_const_visibility [2015/10/20 17:34] – sean-der | rfc:class_const_visibility [2015/10/28 15:06] – RFC was accepted! sean-der | ||
---|---|---|---|
Line 23: | Line 23: | ||
Class constant may be define as public, private or protected. class constants declared | Class constant may be define as public, private or protected. class constants declared | ||
- | without any explict | + | without any explicit |
Proposed syntax: | Proposed syntax: | ||
Line 38: | Line 38: | ||
protected const PROTECTED_CONST = 0; | protected const PROTECTED_CONST = 0; | ||
public const PUBLIC_CONST_TWO = 0; | public const PUBLIC_CONST_TWO = 0; | ||
+ | | ||
+ | //Constants can only have one visibility declaration list | ||
+ | private const FOO = 1, BAR = 2; | ||
} | } | ||
- | // | + | // |
interface ICache { | interface ICache { | ||
public const PUBLIC = 0; | public const PUBLIC = 0; | ||
- | protected | + | |
- | + | ||
- | public function get($k, $v); | + | |
- | public function set($k); | + | |
} | } | ||
Line 94: | Line 94: | ||
There will be new _ex APIs that allow callers to explicitly pass flags. | There will be new _ex APIs that allow callers to explicitly pass flags. | ||
- | If a extension accesses non-public structures (the now non-existant | + | If a extension accesses non-public structures (the now non-existent |
==== To Opcache ==== | ==== To Opcache ==== | ||
Line 103: | Line 103: | ||
Simple Yes/No option. This requires a 2/3 majority. | Simple Yes/No option. This requires a 2/3 majority. | ||
+ | |||
This vote will close on 06:00 UTC on Tuesday 2015-10-27 | This vote will close on 06:00 UTC on Tuesday 2015-10-27 | ||
- | <doodle title=" | + | <doodle title=" |
* Yes | * Yes | ||
* No | * No |
rfc/class_const_visibility.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1