Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14807 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1227 invoked by uid 1010); 10 Feb 2005 22:31:43 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 1212 invoked by uid 1007); 10 Feb 2005 22:31:42 -0000 Message-ID: <20050210223141.1211.qmail@lists.php.net> To: internals@lists.php.net References: <20050207141916.21665.qmail@lists.php.net><1062509740.20050209103014@marcus-boerger.de><20050209110525.1936.qmail@lists.php.net><20050209164713.GC25360@gravitonic.com><20050210080546.52065.qmail@lists.php.net><20050210185558.GA64423@gravitonic.com><1108068700.20077.121.camel@localhost.localdomain> <1108070462.20077.129.camel@localhost.localdomain> Date: Thu, 10 Feb 2005 14:31:39 -0800 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Posted-By: 169.229.135.26 Subject: Re: [PHP-DEV] Autoboxing in php 5.1 From: pollita@php.net ("Sara Golemon") > function foo(Integer $a, Float $b, String $c, Boolean $d) { > > } > Having that automagically translate to: function foo($a, $b, $c, $d) { set_type($a, 'int'); set_type($b, 'float'); set_type($c, 'string'); set_type($d, 'bool'); } Is something that I could see building into the language (in all honesty, isn't that was zend_parse_parameters does for internal functions already?), but objects for primitives? Didn't someone say something about smelly corpses recently? maybe it was "charred"? cold? smoking? rank? -Sara