Alain Williams skrev:

Nice in some ways, except that it is different from the way that type hinting
works in PHP5 classes - again: keep to one way of doing things.

': RetType' might be possible, but it is very different from where type hints
are given currently in PHP.

Stick with:

        function int &myfunction(int &$param)


Yes, on second thought I agree. "Keep to one way of doing things" is definitely sound advice from a teaching POV.


Lars Gunther

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

Reply via email to