Functional programming in D and some reflexion on the () optionality.

David Piepgrass qwertie256 at gmail.com
Mon Aug 6 22:45:36 PDT 2012


>> class A { void B() {} }
>> auto a = new A().B();
>> // ^ semicolon expected following auto declaration, not '.'
>>
> Obviously. No clue what this snippet is trying to do.

Well I meant "int B() { return 0; }" of course. I think you 
deliberately miss the point.


More information about the Digitalmars-d mailing list