2
votes
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 ...
Statistics
|
Visits by Source |
User Actions |




