Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:807 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4540 invoked from network); 8 Apr 2003 19:42:22 -0000 Received: from unknown (HELO carmine.bestweb.net) (209.94.102.73) by pb1.pair.com with SMTP; 8 Apr 2003 19:42:22 -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 666682316B; Tue, 8 Apr 2003 14:42:20 -0500 (EST) To: chrisv@revhosting.com Cc: internals@lists.php.net In-Reply-To: References: Content-Type: text/plain Organization: Message-ID: <1049829657.10654.14.camel@hasele> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.3 Date: 08 Apr 2003 15:20:58 -0400 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [PATCH] 'const' in global scope From: sterling@bumblebury.com (Sterling Hughes) On Tue, 2003-04-08 at 15:44, Chris Vandomelen wrote: > In tune with the current 'const' patches by Sterling, and because I found > it useful (and more consistent than the original behaviour IMHO), attached > is a patch which implements compile-time constants in the global scope: > > > const something = 2, something_else = 4; > > ?> > > The behaviour is the same as define(), only implemented in the compiler > instead of as a function. > You'll want to use static_scalar_expr when applied with my patch. -Sterling > Chris > > ______________________________________________________________________ > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php -- "Programming today is a race between software engineers stirring to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." - Unknown