Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68512 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23445 invoked from network); 14 Aug 2013 11:03:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Aug 2013 11:03:44 -0000 Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:35815] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 07/53-06453-F046B025 for ; Wed, 14 Aug 2013 07:03:44 -0400 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 5BA47E2029; Wed, 14 Aug 2013 12:03:41 +0100 (BST) Date: Wed, 14 Aug 2013 12:03:41 +0100 (BST) X-X-Sender: derick@whisky.home.derickrethans.nl To: Patrick Schaaf cc: internals In-Reply-To: Message-ID: References: <4ED7146272E04A47B986ED49E771E347BB514EEE88@Ikarus.ameusgmbh.intern> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: RE: [PHP-DEV] [RFC] Constant Scalar Expressions From: derick@php.net (Derick Rethans) On Wed, 14 Aug 2013, Patrick Schaaf wrote: > Would this allow using constants, too? Class constants? > > const FOO = 1; > const BAR = self::FOO + 1; > const BAZ = self::FOO + 2; > const BARF = GLOBAL_BARF; > const IMPORT = otherclass::IMPORT; // with autoloading? > > In my opinion these would start to make the feature useful. Those are not constants, but expressions which can't be run during compile time. Derick