DMD 0.161 release

Rémy Mouëza Rémy_member at pathlink.com
Tue Jun 20 12:12:44 PDT 2006


The new delegate syntax reminds me Smalltalk's code blocks. As far as I
remember, Ruby also uses code blocks with a syntax using braces rather than
bracket.

Smalltalk: 
collection do:[ :each | Transcript show: each asString ; cr. ].

D:
collection.do (( Object each ){ writefln ( each ); });
( a foreach would be preferrable in that case, but it's just to notice the
similarities ). 

D is getting greater and greater. Thanks Walter !!!






More information about the Digitalmars-d-announce mailing list