Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48204 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69559 invoked from network); 4 May 2010 16:55:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 May 2010 16:55:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=pasthelod@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pasthelod@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pasthelod@gmail.com X-Host-Fingerprint: 209.85.161.42 mail-fx0-f42.google.com Received: from [209.85.161.42] ([209.85.161.42:50902] helo=mail-fx0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 38/D9-12067-58150EB4 for ; Tue, 04 May 2010 12:55:34 -0400 Received: by fxm15 with SMTP id 15so3446685fxm.29 for ; Tue, 04 May 2010 09:55:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=VhKzfk1UhfscvcU9zwjbhpurM096L+dTJdfMpU5pAvM=; b=NLMROIpusAvADzq9xuQkpIME4FWIhxo5aQQS2otP7WviK1C4zzBqoHhFuHjCJsKL57 SqNqJ+FQt6Y/q3xsQCVCnQydq/V9tODqy+yf1rOb1F5U51u0CijopG0LRdvOF8Yyikx9 kIpKPCAdAvSV8Btew7btUkG0k/C3Nb0IN9vcE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=d9vIP9uMA/9JBAZzdH7l+8RCzKujdWb0Aoa6Ek3jkNK09zhP0aoq6PWZZ7FW2lyddl SUaV6Kma1CFHAqTjA6hwhBbvRktS8cuoK/WmRo5w6HTwpegPg/zOVsFhhCvXWGYPahCR LMe3LCbKZoPR1dhwEcRsZAQnTTOlCvrFu9YJE= Received: by 10.223.26.130 with SMTP id e2mr3001942fac.101.1272992129185; Tue, 04 May 2010 09:55:29 -0700 (PDT) Received: from [192.168.1.100] (catv-80-98-239-104.catv.broadband.hu [80.98.239.104]) by mx.google.com with ESMTPS id 18sm11975847fkq.4.2010.05.04.09.55.27 (version=SSLv3 cipher=RC4-MD5); Tue, 04 May 2010 09:55:28 -0700 (PDT) Message-ID: <4BE0517D.9050505@gmail.com> Date: Tue, 04 May 2010 18:55:25 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.9) Gecko/20100429 Lightning/1.0b1 Shredder/3.0.5pre MIME-Version: 1.0 To: internals@lists.php.net References: <2e6e2d42aa83b62a990694d902b7b936@beberlei.de> In-Reply-To: <2e6e2d42aa83b62a990694d902b7b936@beberlei.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Autoboxing in PHP From: pasthelod@gmail.com (Pas) On 2010.05.04. 16:28, Benjamin Eberlei wrote: > > 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? It could throw an exception. > > 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 >