Re: Object Type Casting Reloaded
| From: | Michał Brzuchalski | Date: | Wed, 24 Apr 2019 10:15:48 +0000 |
| Subject: | Re: Object Type Casting Reloaded | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-105367@lists.php.net to get a copy of this message | ||
wt., 23 kwi 2019 o 11:17 Nikita Popov <nikita.ppv@gmail.com> napisał(a):
> ...
> Without commenting on the rest of the proposal: It's not possible to use
> (ClassName) as a cast syntax, because it is ambiguous. For example (Foo)
> [$x] is already valid syntax (fetch constant Foo and take index $x), or
> (Foo) +$bar, etc.
>
Wouldn't that be possible to differentiate consts with class names if we
merge symbol tables and allow only one symbol with the same name?
I know this is huge BC break but AFAIK in the past, there was a discussion
about merging symbol tables.
--
regards / pozdrawiam,
--
Michał Brzuchalski
about.me/brzuchal
brzuchalski.com