Re: [RFC] Constant Scalar Expressions (with constants)
| From: | Nikita Popov | Date: | Thu, 07 Nov 2013 13:12:57 +0000 |
| Subject: | Re: [RFC] Constant Scalar Expressions (with constants) | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-70056@lists.php.net to get a copy of this message | ||
On Thu, Nov 7, 2013 at 2:08 PM, Patrick Schaaf <bof@bof.de> wrote:
> Am 07.11.2013 13:01 schrieb "Bob Weinand" <bobwei9@hotmail.com>:
> >
> > https://wiki.php.net/rfc/const_scalar_exprs
>
> Wow, this looks really nice!
>
> Will this work with class autoloading, too? i.e. will
>
> class foo {
> const X = bar::X;
> }
>
> trigger autoloading for class bar?
>
Once again, the code you posted is already supported, not really part of
this proposal. And yes, it will invoke the autoloader, see
http://codepad.viper-7.com/2Xz8ux :)
Nikita