<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I'd get used to Jimmy!, and thats a nice name
too.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>"Jimmy Cao" <<A
href="mailto:jcao219@gmail.com">jcao219@gmail.com</A>> wrote in message <A
href="news:mailman.635.1287179560.858.digitalmars-d@puremagic.com">news:mailman.635.1287179560.858.digitalmars-d@puremagic.com</A>...</DIV>It
doesn't matter if it sounds unintuitive to you right now,
<DIV>eventually if you keep using it, the word will stick.</DIV>
<DIV>duck! is a nice name, so I'm fine with the idea.<BR><BR>
<DIV class=gmail_quote>On Fri, Oct 15, 2010 at 4:46 PM, JimBob <SPAN
dir=ltr><<A href="mailto:jim@bob.com">jim@bob.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV class=im><BR>"Andrei Alexandrescu" <<A
href="mailto:SeeWebsiteForEmail@erdani.org">SeeWebsiteForEmail@erdani.org</A>>
wrote in message<BR>news:i9ae2n$k9g$1@digitalmars.com...<BR></DIV>
<DIV>
<DIV></DIV>
<DIV class=h5>>I was talking to Walter about Kenji's adaptTo. We both
think it's a very<BR>>powerful enabler, but adaptTo is a bland name.
After discussing a few<BR>>marketing strategies, I proposed "duck". It's
short, simple, and evokes<BR>>"duck typing".<BR>><BR>> class
C<BR>> {<BR>> int draw(){ return 10; }<BR>> }<BR>>
interface Drawable<BR>> {<BR>> long draw();<BR>>
}<BR>> ...<BR>> auto c = new C;<BR>> auto d = duck!Drawable(c); //
awes<BR>><BR>> Kenji, I'll be looking forward to your submission :o).
Would be great to<BR>> allow structs to duck,
too!<BR><BR></DIV></DIV>duck doesnt convey much meaning imo so.. why not
"adapt!"<BR><BR>Ties in with the Adaptor design pattern.. which i'm guessing
is what it<BR>actualy
does.<BR><BR><BR></BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE></BODY></HTML>