DMD 0.161 release
BCS
BCS at pathlink.com
Tue Jun 20 09:49:47 PDT 2006
Chris Miller wrote:
> On Tue, 20 Jun 2006 02:03:08 -0400, Walter Bright
> <newshound at digitalmars.com> wrote:
>
>> Mostly bug fixes.
>>
>> http://www.digitalmars.com/d/changelog.html
>
>
>
> Wow, that new literal delegate syntax is crazy but I like it.
>
[...]
Ohhhh fun!! Try finding the bug in this one (ignore the hints).
<code>
#import std.stdio;
#void main()
#{
# writef(fn,\n);
#}
#
#int fn()
#{
# int baz()
# {
# return 6;
# }
#
# void figNewton( int i, int delegate()fnp=&baz, int k=3, int l=0)
# {
# }
# int w;
#
# figNewton(9,//);
# {
# return 1;
# },//;
# w = (1+3),//;
# doNothing/*(*/);
#
# return 2;
#}
#int doNothing(){return 1;}
</code>
Yah, yah thats about a contrived a C-list movie but...
More information about the Digitalmars-d-announce
mailing list