Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17215 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47592 invoked by uid 1010); 10 Jul 2005 09:43:58 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 47577 invoked from network); 10 Jul 2005 09:43:58 -0000 Received: from unknown (HELO zend.com) (127.0.0.1) by localhost with SMTP; 10 Jul 2005 09:43:58 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:47675] helo=mail.zend.com) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id 0C/CE-25935-DDDE0D24 for ; Sun, 10 Jul 2005 05:43:58 -0400 Received: (qmail 24523 invoked from network); 10 Jul 2005 09:43:54 -0000 Received: from shire.zend.office (10.1.2.160) by internal.zend.office with SMTP; 10 Jul 2005 09:43:54 -0000 Date: Sun, 10 Jul 2005 12:43:52 +0300 (IDT) X-X-Sender: frodo@shire.zend.office To: Jessie Hernandez cc: internals@lists.php.net In-Reply-To: <84.75.05285.5EA7CC24@pb1.pair.com> Message-ID: References: <84.75.05285.5EA7CC24@pb1.pair.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] YANP (Yet Another Namespace Proposal) From: stas@zend.com (Stanislav Malyshev) JH>>- Classes may not contain colons (no change here), BUT class name references JH>>CAN contain colons (this is KEY!). JH>>- All imports are done at compile time. JH>>- Imports only affect the current file (yes, this has been done!) The problem here is that once you have somewhat developed package - like PEAR packages - which may contain dozens of internal classes, you'd have to have a large import statement block at the beginning of each file using them - or refer to them all by the full name, thus just replacing underscore-notation with colon-notation. -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115