Re: Final variables
| From: | Kalle Sommer Nielsen | Date: | Thu, 29 Jun 2017 02:50:22 +0000 |
| Subject: | Re: Final variables | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-99668@lists.php.net to get a copy of this message | ||
Hi
2017-06-28 20:46 GMT+02:00 David Rodrigues <david.proweb@gmail.com>:
> The "final" keyworks make a "local scope" variable value "blocked to
> rewrite" after instantiate it.
> Okay, it sounds like a "const", and it is, but "not as we known it".
I get that, but I still don't understand why you would forcefully need
it to be a variable still then if you know the value is gonna be
constant, of course besides global visibility or in iterations
--
regards,
Kalle Sommer Nielsen
kalle@php.net