On Sat, 2010-10-16 at 15:25 +0300, Max Samukha wrote: > On 10/16/2010 10:30 AM, Christof Schardt wrote: > >> auto d = duck!Drawable(c); // awes > > > > What about "as" ? > > > > auto d = as!Drawable(c); > > > > Christof > > > > > > Nice name. It can be confused with the dynamic cast operator by some C# > users but that is probably a non-issue.
Groovy uses as as a conversion operator. cf.
def x = [ run : { println ( 'Hello World.' ) } ] as Thread
x.start ( )
--
Russel.
=============================================================================
Dr Russel Winder t: +44 20 7585 2200 voip: sip:[email protected]
41 Buckmaster Road m: +44 7770 465 077 xmpp: [email protected]
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
signature.asc
Description: This is a digitally signed message part
