Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:804 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65142 invoked from network); 8 Apr 2003 18:37:09 -0000 Received: from unknown (HELO carmine.bestweb.net) (209.94.102.73) by pb1.pair.com with SMTP; 8 Apr 2003 18:37:09 -0000 Received: from [192.168.1.101] (ip216-179-71-153.cust.bestweb.net [216.179.71.153]) by carmine.bestweb.net (Postfix) with ESMTP id 961CA22EEA; Tue, 8 Apr 2003 13:37:08 -0500 (EST) To: Andrey Hristov Cc: internals@lists.php.net In-Reply-To: <043801c2fdfd$77798100$1601a8c0@andreywin> References: <1049764010.24472.618.camel@hasele> <1049769838.24472.719.camel@hasele> <1049825151.20585.8.camel@hasele> <043801c2fdfd$77798100$1601a8c0@andreywin> Content-Type: text/plain Organization: Message-ID: <1049825747.10654.12.camel@hasele> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.3 Date: 08 Apr 2003 14:15:47 -0400 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [PATCH] Allow constant expressions From: sterling@bumblebury.com (Sterling Hughes) 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