Re: variable declaration in class
| From: | Jens Lehmann | Date: | Wed, 19 Jun 2002 18:04:23 +0000 |
| Subject: | Re: variable declaration in class | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-102979@lists.php.net to get a copy of this message | ||
> >
> > class test
> > {
> > var $a = 2*10;
> > }
> >
> > Of course I know why there's a parse error, but I don't
> > know the reason why PHP doesn't allow this multiplication,
>
> Because, that's why. :)
>
Which means there is no reason? I think this should be fixed in
the future. Additionally I want to mention that Java allows such
statements ...
Jens