Hans, such overloading would be incompatible with php's dynamic nature
As far as I remember, even type-hinting for basic-types (strings,
integers) was rejected
On 10/13/07, Hans Moog <[EMAIL PROTECTED]> wrote:
> Will method overloading by method signature be implemented in php6 or
> even php 5.3?
>
>
>
> Example:
>
> <?php
>
> namespace xyz;
>
>
>
> import core::TestClass;
>
>
>
> class Test extends TestClass {
>
> public string function test(integer $int) {
>
> return "Hi";
> }
>
>
>
> public integer function test(string $string, integer $int) {
>
> return $int;
> }
> }
>
> ?>
>
>
>
> I think this would be a very big advantage and would help developers to
> write better code.
>
>
--
Alexey Zakhlestin
http://blog.milkfarmsoft.com/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php