Delegation of multiple Interfaces to a member variable of type TObject or Interface by a controlling object instance
Original Reporter info from Mantis: gerrit
-
Reporter name: Gerrit Moeller
Original Reporter info from Mantis: gerrit
- Reporter name: Gerrit Moeller
Description:
I used delegation of multiple Interfaces to member variables of type TObject and Interface by a controlling object instance with Delphi. FreePascal does not allow this. But delegating more than one Interface by just a single line of code is much smarter than manual delegation by repeating all Interface methods in the controlling class.
See attached MultiIntfDelegation.pas for precise description of my suggestions. Delphi can do that.
Steps to reproduce:
See attached program MultiIntfDelegation.pas
Mantis conversion info:
- Mantis ID: 19182
- OS: All
- OS Build: All
- Platform: All
- Fixed in version: 3.0.0
- Fixed in revision: 18983 (#16859976)
- Monitored by: » luizamerico (Luiz Americo)