Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54613 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94889 invoked from network); 15 Aug 2011 07:09:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Aug 2011 07:09:19 -0000 Authentication-Results: pb1.pair.com header.from=hermanradtke@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=hermanradtke@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.42 as permitted sender) X-PHP-List-Original-Sender: hermanradtke@gmail.com X-Host-Fingerprint: 209.85.212.42 mail-vw0-f42.google.com Received: from [209.85.212.42] ([209.85.212.42:34749] helo=mail-vw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BB/B2-12367-E16C84E4 for ; Mon, 15 Aug 2011 03:09:18 -0400 Received: by vwl1 with SMTP id 1so4206159vwl.29 for ; Mon, 15 Aug 2011 00:09:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=AzPjxWEgPiFT3S5Dj+beGZPQfoHvnweFmtqKenxBmlo=; b=KL57qsV5DcLM0FfMnE6PISzlGC+oGJEVVHYo3BrnAdguboM3yWHg8CgmilFzGkCS9O spZOcgOhTSEyJReIxE/EcA4EnJMyhIYCeCiTGYI7YdJc7O3JvwapNaOWckb8Buz6ljrR IMD/i2oNklbrfhQNBy4uXKWP2DyBIIbZ279RQ= MIME-Version: 1.0 Received: by 10.52.69.164 with SMTP id f4mr3432757vdu.60.1313392155805; Mon, 15 Aug 2011 00:09:15 -0700 (PDT) Received: by 10.52.156.168 with HTTP; Mon, 15 Aug 2011 00:09:15 -0700 (PDT) In-Reply-To: <4E48C126.50707@sugarcrm.com> References: <4E481136.3090508@sugarcrm.com> <4E483284.4010100@googlemail.com> <4E4838E1.3000006@sugarcrm.com> <4E48430D.6070409@googlemail.com> <4E486A50.4010700@sugarcrm.com> <4E48A22E.1040900@googlemail.com> <4E48AD3E.6010801@sugarcrm.com> <4E48C126.50707@sugarcrm.com> Date: Mon, 15 Aug 2011 00:09:15 -0700 Message-ID: To: Stas Malyshev Cc: Sebastian Krebs , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Function autoloading through spl_autoload* From: hermanradtke@gmail.com (Herman Radtke) >> I already made an suggestion [1], that bypass this. > > That suggestion means you can not autoload namespaced function that > overrides global function. Major WTF. Also leads to two autoload calls (one > most probably resulting in exhaustive include path search) when autoloading > a non-namespaced function. Pretty bad idea IMO. It seems to me that the goal is a Python-esque approach to functions. A module (or namespace) has a number of functions, classes, etc. Once that namespace is loaded, everything is then accessible. This is similar to wrapping a number of functions within a class. The main difference is that using the namespace would allow functions to be called without a prefix. -- Herman Radtke hermanradtke@gmail.com | http://hermanradtke.com