Wouldn't linking adaptTo to opDispatch (if the functions we are after not
supported by that class) make it complete duck-typing?
On Sat, 16 Oct 2010 23:05:52 +0300, Andrei Alexandrescu
<seewebsiteforem...@erdani.org> wrote:
On 10/16/2010 02:54 PM, kenji hara wrote:
Adapter-Pattern! I'd have forgotten the name.
It is NOT equals to duck-typing.
It's a subset of duck typing. I don't think calling a function that
supports a limited form of duck typing "duck" is a lie.
Andrei
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/