RE: [PHP-DEV] [RFC] Constant Scalar Expressions (with constants)
| From: | Van Peer Ilias | Date: | Thu, 07 Nov 2013 13:15:44 +0000 |
| Subject: | RE: [PHP-DEV] [RFC] Constant Scalar Expressions (with constants) | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-70057@lists.php.net to get a copy of this message | ||
It's nice to see people get excited for things they already have. Should lead to a little more
appreciation of what's already there, I guess..
-----Original Message-----
From: Nikita Popov [mailto:nikita.ppv@gmail.com]
Sent: donderdag 7 november 2013 14:13
To: Patrick Schaaf
Cc: Bob Weinand; internals
Subject: Re: [PHP-DEV] [RFC] Constant Scalar Expressions (with constants)
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
This e-mail and all files transmitted as attachment(s) thereto are confidential and solely intended
for the individual to whom or the organization to which they are addressed. If you received this
e-mail by mistake, please notify Cegeka's Service Desk at cegeka.support@cegeka.be or call +32
(0)11 240 363. We thank you in advance. Cegeka hereby confirms that this message has been swept by
Sophos for the presence of viruses.