Re: [PATCH] Allow constant expressions

From: Date: Tue, 08 Apr 2003 18:34:18 +0000
Subject: Re: [PATCH] Allow constant expressions
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-803@lists.php.net to get a copy of this message
> > 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? Andrey

« previous php.internals (#803) next »