What are the differences between these forms of function-like declarations ?

Anderel Cerol w_sholmes at hotmail.com
Wed Sep 5 22:18:49 PDT 2012


>
> a real example is :
> ....
> import std.net.curl;
> auto http=HTTP();
> ...
> http.onReceiveStatusLine(...);
> ...
>
> the function http.onReceiveStatusLine(...) is exactly what the 
> function on(...) is above.
> The environment is dmd 2.060 Windows.
plus, what passes to the http.onReceiveStatusLine is just 
(a){a.writeln();} with different forms above.



More information about the Digitalmars-d mailing list