Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31834 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52498 invoked by uid 1010); 22 Aug 2007 12:47:47 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 52483 invoked from network); 22 Aug 2007 12:47:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Aug 2007 12:47:47 -0000 Authentication-Results: pb1.pair.com header.from=johannes@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 83.243.58.163 as permitted sender) X-PHP-List-Original-Sender: johannes@php.net X-Host-Fingerprint: 83.243.58.163 mail4.netbeat.de Received: from [83.243.58.163] ([83.243.58.163:58292] helo=mail4.netbeat.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9A/A1-42616-F603CC64 for ; Wed, 22 Aug 2007 08:47:47 -0400 Received: (qmail 10986 invoked by uid 507); 22 Aug 2007 12:47:38 -0000 Received: from unknown (HELO ?192.168.1.102?) (postmaster%schlueters.de@82.135.82.220) by mail4.netbeat.de with ESMTPA; 22 Aug 2007 12:47:38 -0000 To: Dmitry Stogov Cc: 'PHP Internals List' In-Reply-To: <000c01c7e49b$1b54baf0$6e02a8c0@thinkpad> References: <000c01c7e49b$1b54baf0$6e02a8c0@thinkpad> Content-Type: text/plain Date: Wed, 22 Aug 2007 14:47:35 +0200 Message-ID: <1187786855.13028.1.camel@johannes.nop> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 (2.10.3-2.fc7) Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Constans in namesapces From: johannes@php.net (Johannes =?ISO-8859-1?Q?Schl=FCter?=) Hi Dmitry, On Wed, 2007-08-22 at 13:02 +0400, Dmitry Stogov wrote: > Hi, > > The proposed patch implements namespace support for constants. > It allows to declare constants in namespaces in the same way as in classes. > And these constants may be used in the same may as namespaces' functions. I like the idea. Am I right with the assumption, from scrolling over the patch, that "const" outside any namespace would work, too, meaning we could get compile-time constants even outside a namespace? johannes