Re: Autoboxing in php 5.1
| From: | Sara Golemon | Date: | Thu, 10 Feb 2005 22:31:39 +0000 |
| Subject: | Re: Autoboxing in php 5.1 | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-14807@lists.php.net to get a copy of this message | ||
> 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