Vote UpVote

Duck Typing in Delphi

Daniele Teti's programming blog – During a new dorm feature development, I’m faced a nice problem: I want to have a generic access to a “kind” of list Let’s say: procedure DoSomething(Obj: TMyListType); begin … end; But, I want to have that generic access without a Layer Supertype object, because I need to be able to use objects from other libraries or 3rd party. In this case traditional polimorphism is not usable, so I’ve opted for an interface… procedure DoSomething(MyIntf: IMyListInterface); begin … end; Cool, but I want to have that ...
Favorite? Off-Topic? Daniele Teti @ 2011-11-08 00:04


Visits: 919
Votes: 2
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Cristian Cialli
Primoz Gabrijelcic
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)