Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68287 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90763 invoked from network); 23 Jul 2013 20:28:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jul 2013 20:28:26 -0000 Authentication-Results: pb1.pair.com header.from=igor@wiedler.ch; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=igor@wiedler.ch; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain wiedler.ch from 217.26.49.180 cause and error) X-PHP-List-Original-Sender: igor@wiedler.ch X-Host-Fingerprint: 217.26.49.180 mxout001.mail.hostpoint.ch Received: from [217.26.49.180] ([217.26.49.180:51266] helo=mxout001.mail.hostpoint.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AA/40-17597-867EEE15 for ; Tue, 23 Jul 2013 16:28:25 -0400 Received: from [10.0.2.45] (helo=asmtp012.mail.hostpoint.ch) by mxout001.mail.hostpoint.ch with esmtp (Exim 4.72 (FreeBSD)) (envelope-from ) id 1V1jC0-000BTR-NI; Tue, 23 Jul 2013 22:28:20 +0200 Received: from [84.73.218.139] (helo=[10.0.1.97]) by asmtp012.mail.hostpoint.ch with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1V1jC0-00018t-LU; Tue, 23 Jul 2013 22:28:20 +0200 X-Authenticated-Sender-Id: igor@wiedler.ch Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) In-Reply-To: Date: Tue, 23 Jul 2013 22:28:20 +0200 Cc: Sebastian Krebs Content-Transfer-Encoding: quoted-printable Message-ID: <403E6D88-8057-48F1-A742-73D026CB1760@wiedler.ch> References: <60BF8DD5-FEEA-47D9-834F-6C7FDEF3B879@wiedler.ch> To: PHP internals list X-Mailer: Apple Mail (2.1508) Subject: Re: [PHP-DEV] [RFC] Importing namespaced functions From: igor@wiedler.ch (Igor Wiedler) Hi, Based on Sebastian's feedback I have updated the RFC and the patch to = include a `use const` sequence that works just like `use function`, but = for namespaced constants. Example usage: namespace foo\bar { const baz =3D 42; } =20 namespace { use const foo\bar\baz; var_dump(baz); } I also fixed some other issues that the original patch had in the = process (see commit history). Please keep the feedback coming. Thanks, Igor