Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:4143 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31304 invoked by uid 1010); 23 Aug 2003 17:42:18 -0000 Received: (qmail 31286 invoked by uid 1007); 23 Aug 2003 17:42:18 -0000 Message-ID: <20030823174217.31249.qmail@pb1.pair.com> To: internals@lists.php.net Reply-To: "l0t3k" References: <001b01c368a1$775b2070$6402a8c0@sleepert> <5.1.0.14.2.20030823012845.0576f768@localhost> <5.1.0.14.2.20030823170950.05b14e30@localhost> Date: Sat, 23 Aug 2003 13:40:57 -0400 Lines: 33 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Posted-By: 68.19.5.48 Subject: Re: [PHP-DEV] Constant Scope PHP5 From: cshmoove@bellsouth.net ("l0t3k") Zeev, speaking of const, i have a feature request. why not accept "const" in the global context and create a compile-time global constant ? e.g. const FOO = 1 ; const BAR = 2; class Barbara { const Barbara::BUSH = FOO; }; i'd much prefer this as an alternative to the runtime define(). l0t3k "Zeev Suraski" wrote in message news:5.1.0.14.2.20030823170950.05b14e30@localhost... > At 07:03 23/08/2003, DvDmanDT wrote: > >Wait a sec... When did const become a keyword? > > In PHP 5.0. > > >And since when can you > >initialize variables from outside a constructor/function? > > Since PHP 3.0 :) > > Zeev >