Vote UpVote

Sneak Peek: Duck Typing and “Soft Interfaces” in Delphi Prism XE2 and Cooper

RemObjects Blogs – One of the new language features in the upcoming Oxygene 5 compiler is support for duck typing and what we call “soft interfaces”. The name “duck typing” comes form the old saying that if something walks like a duck, and quacks like a duck, it is a duck – and applies the same concept to objects. Imagine we have the following (a bit contrived) types declared, and let’s further assume that some of them are outside of our direct control – maybe they are declared in the core framework, or in a piece of the project you don’t want to touch: type IFooBar = ...
Favorite? Off-Topic? marc hoffman @ 2011-07-01 15:45


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

Visits by Source

User Actions

Users who voted for this posting

Robert Love
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)