DMD 0.161 release

Walter Bright newshound at digitalmars.com
Tue Jun 20 10:59:39 PDT 2006


Jarrett Billingsley wrote:
> "Walter Bright" <newshound at digitalmars.com> wrote in message 
> news:e7832r$g4h$1 at digitaldaemon.com...
>> Mostly bug fixes.
>>
>> http://www.digitalmars.com/d/changelog.html
> 
> Oh man, those delegate literals look like it would be very possible to make 
> interesting "pseudo-structures," that is, fake language constructs.  So if 
> you were to define a function as
> 
> void func(void delegate() dg);
> 
> That is, the last parameter is a void delegate(), it would be an interesting 
> bit of syntactic sugar to be able to write
> 
> func
> {
>     writefln("foo");
> }
> 
> Not sure what utility this would present, but hey! 

There was some thought about doing that, but I'm not so sure it wouldn't 
be more confusing than useful.



More information about the Digitalmars-d-announce mailing list