Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76259 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60485 invoked from network); 30 Jul 2014 02:54:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jul 2014 02:54:37 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.52 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.215.52 mail-la0-f52.google.com Received: from [209.85.215.52] ([209.85.215.52:58682] helo=mail-la0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 22/24-29261-C6E58D35 for ; Tue, 29 Jul 2014 22:54:37 -0400 Received: by mail-la0-f52.google.com with SMTP id e16so398061lan.25 for ; Tue, 29 Jul 2014 19:54:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=Jad3nhxrp/z3sqCcfHkhYm6r24WEj/mlixnTxuGypHI=; b=hKVqNZA1ZgFVdWg7vF968xozH9hRl2QOq+xtp7oCoweaVfNn6SW3enLGeSZLFxH9lg oNvwmzy/DLMjysh1uEnbMzd7BKxDwsjA1B+OpelX7UV2bzi5Z23iygNCSMTv9ZYQes1s rt+1hDKs9tZ1sVtsSgoowEWG6nG2QyzWLXtoSoYhSfh6k0rB0EZrjfKVSJ3/zQKc0env RM2DVLBnz0TiR2wbHtgLGHwTeJoOxMEKM3P11lwzHBfiKrwrN04S3PfZgs6bhPM08Hoh LAOkl2EIK+4u6S7vYKiHbxRvdLwUJjTZwcoFxA1NL7CIFsIzvvDIXOHjclzOsdwuUxdd KBvw== X-Received: by 10.152.2.3 with SMTP id 3mr1089150laq.8.1406688889361; Tue, 29 Jul 2014 19:54:49 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.214.228 with HTTP; Tue, 29 Jul 2014 19:54:08 -0700 (PDT) In-Reply-To: References: Date: Wed, 30 Jul 2014 11:54:08 +0900 X-Google-Sender-Auth: 9eWt5x99vTNHfcvbiYd512raqv0 Message-ID: To: Ferenc Kovacs Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=089e013c66628f5aec04ff6047ce Subject: Re: [PHP-DEV] "PHP" namespace? From: yohgaki@ohgaki.net (Yasuo Ohgaki) --089e013c66628f5aec04ff6047ce Content-Type: text/plain; charset=UTF-8 Hi Ferenc, On Mon, Jul 28, 2014 at 5:22 PM, Ferenc Kovacs wrote: > namespaces has a bit clunky way of supporting constants: define always > assumes global ns(and the const syntax only allows scalar values so it > isn't always an option to use const). define() is problem because it's an exception. Possible solution might be "make define()ed constants aware namespace and allow importing them to \ (root)". Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --089e013c66628f5aec04ff6047ce--