Re: [PATCH] Allow constant expressions

From: Date: Tue, 08 Apr 2003 18:15:47 +0000
Subject: Re: [PATCH] Allow constant expressions
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-804@lists.php.net to get a copy of this message
On Tue, 2003-04-08 at 14:34, Andrey Hristov wrote: > > > > However: > > > > class simple { > > const minute = second * 60; > > const second = 1; > > } > > > > Wouldn't, and neither would: > > > > class simple { > > const foo = "bar"; > > } > > So, only scalars could be initialized consts? > yes, that's how its always worked. -Sterling -- "Reductionists like to take things apart. The rest of us are just trying to get it together." - Larry Wall, Programming Perl, 3rd Edition

« previous php.internals (#804) next »