Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20916 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88748 invoked by uid 1010); 30 Nov 2005 23:19:36 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 88732 invoked from network); 30 Nov 2005 23:19:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Nov 2005 23:19:36 -0000 X-Host-Fingerprint: 84.60.0.20 dslb-084-060-000-020.pools.arcor-ip.net Received: from ([84.60.0.20:24928] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id F3/86-14828-8833E834 for ; Wed, 30 Nov 2005 18:19:36 -0500 Message-ID: To: internals@lists.php.net Date: Thu, 01 Dec 2005 00:19:31 +0100 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 References: <000601c5f583$2490afb0$5d54edc6@jake> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Posted-By: 84.60.0.20 Subject: Re: Desired namespace behavoir From: oliver.graetz@arcor.de (=?ISO-8859-15?Q?Oliver_Gr=E4tz?=) Jessie Hernandez schrieb: > In this case the FOO define will be used. When you do a namespace import, > you can really only use classes without the namespace prefix (since > __autoload exists). To reference a function name without the prefix, you > must import it directly, as: > > import function A:::my_func; > > To have the same behavior for functions in namespace imports, a global > __call function would need to be defined (this would serve as the > "__autoload" for functions. Hi Jessie! First of all, what about the "import ... as ..." syntax? And then, I wrote about a "auto prefix simulation" mode. This could give the prefix evangelists what they want without stopping others from using namespaces. How would that fit in here? Or is this suffering the same problems as here with only having autoscope-functionality for classes? OLLi PS: Sheesh, today the connection timeouts to news.php.net were getting on my nerves again. Is this just an issue with Thunderbird? I guess, other users seem to have these too (looking at the huge amount of double posts, that tend to happen alongside connection timeout stuff...)