[Gambas-user] Issue 78 in gambas: Illegal optimization / May a method's return value type in a derived class be different from the base class?

gambas at ...2524... gambas at ...2524...
Wed Aug 31 01:58:38 CEST 2011


Updates:
	Status: Fixed

Comment #5 on issue 78 by benoit.m... at ...626...: Illegal optimization / May  
a method's return value type in a derived class be different from the base  
class?
http://code.google.com/p/gambas/issues/detail?id=78

Fixed in revision #4064.

Now, a class method can override a method of a parent class only if they  
have
the same signature.

The check is not done for the "_new" special method, as the inheritance of
_new is special (see "inheritance and constructor" in the "Gambas object
model" documentation on the wiki).

And the check is not done too for a native class inheriting another native
class. C/C++ programmer are supposed to know what they are doing. :-)





More information about the User mailing list