> 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 

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to