[Gambas-devel] Arguments of inherited constructors. CHANGE AGAIN!

Benoît Minisini gambas at ...1...
Tue Dec 1 05:19:29 CET 2009


> In a more general way, the order of arguments is:
> 
> - Mandatory arguments of the final constructor.
> - Mandatory arguments of the parent constructor.
> - Mandatory arguments of the grand-parent constructor.
> ... and so on.
> - Optional arguments of the final constructor.
> - Optional arguments of the parent constructor.
> - Optional arguments of the grand-parent constructor.
> ... and so on.
> 

NO, I was wrong. The order of argument is, for a three level inheritance tree:

* Mandatory arguments of the grand-parent constructor.
* Mandatory arguments of the parent constructor.
* Mandatory arguments of the final constructor.
* Optional arguments of the grand-parent constructor.
* Optional arguments of the parent constructor.
* Optional arguments of the final constructor. 

The elder classes first!

-- 
Benoît Minisini




More information about the Devel mailing list