RFC #0030: Overloaded methods in lang.reflect.Proxy

at 2005-07-14 in RFCs by friebe (0 comments)

Scope of Change
Add a new functionality to method getProxyClass() of lang.reflect.Proxy class. This functionality will add the ability to design proxy classes by a new annotation "@overloaded" being able to give method calls a variable number of arguments, e.g. for overloaded methods in java.

Rationale
When creating proxy instances of a java class there is no way in php to overload methods. A java bean class implementing the following methods

public string sayHello() {}
public string sayHello(String name) {}

would cause a "Fatal error: Cannot redeclare sayHello()" when generating an Interface for that class. Thus when creating Interfaces with overloaded methods, the overloaded method must be declared only once with a variable number of parameters.

Read the full RFC here



Subscribe

You can subscribe to the XP framework's news by using RSS syndication.


Categories

News
General
PHP5
Announcements
RFCs
Further reading
Examples
Editorial
EASC
Experiments
Unittests
Databases
5.8-SERIES

Related

Find related articles by a search for «RFC».