Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48199 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34021 invoked from network); 4 May 2010 14:28:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 May 2010 14:28:52 -0000 Authentication-Results: pb1.pair.com smtp.mail=kontakt@beberlei.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=kontakt@beberlei.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain beberlei.de from 87.230.78.165 cause and error) X-PHP-List-Original-Sender: kontakt@beberlei.de X-Host-Fingerprint: 87.230.78.165 www.mysqlusers.de Linux 2.5 (sometimes 2.4) (4) Received: from [87.230.78.165] ([87.230.78.165:36668] helo=beberlei.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E1/34-12067-12F20EB4 for ; Tue, 04 May 2010 10:28:50 -0400 Received: by beberlei.de (Postfix, from userid 33) id C662016AC3D0; Tue, 4 May 2010 16:28:46 +0200 (CEST) To: MIME-Version: 1.0 Date: Tue, 04 May 2010 16:28:46 +0200 In-Reply-To: References: Message-ID: <2e6e2d42aa83b62a990694d902b7b936@beberlei.de> X-Sender: kontakt@beberlei.de User-Agent: RoundCube Webmail/0.3.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Autoboxing in PHP From: kontakt@beberlei.de (Benjamin Eberlei) Should'nt any autobox callback should not only recieve the value to be autoboxed, but also the context information? I.e. the method name to be called on the variable? otherwise you cannot decide between different behaviours. Also i wouldn't know how to have an autobox callback not to accept the value, return false? On Tue, 4 May 2010 16:12:22 +0200, Etienne Kneuss wrote: > Hi, > > On Tue, May 4, 2010 at 5:48 AM, Moriyoshi Koizumi wrote: >> Hey, >> >> Just to let you know about a new RFC for adding autoboxing feature in >> PHP. >> Look at http://wiki.php.net/rfc/autoboxing . > > > It looks like a very interesting idea. However, I believe that we > should learn from the __autoload experience: It does not cope well > with multiple projects. I'd rather have register_autoboxer($callback) > or even register_autoboxer("type", $callback); for instance, so that > many projects could have their own autoboxer. > > Best, > >> >> Regards, >> Moriyoshi >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> > > > > -- > Etienne Kneuss > http://www.colder.ch