duck!

Simen kjaeraas simen.kjaras at gmail.com
Sat Oct 16 09:40:38 PDT 2010


kenji hara <k.hara.pg at gmail.com> wrote:

> I'm now implementing function getting original object from
> interface(like Drawable).
> ----
> auto c = new C();
> auto d = adaptTo!Drawable(c);
> ...
> auto c2 =  = XXX!C(d)
> assert(c2 is c);
> ----
> In this case, XXX's name may be antonym of adaptTo.
> What is the antonym of 'duck'?

goose?

-- 
Simen


More information about the Digitalmars-d mailing list