auto

Ary Borenszweig ary at esperanto.org.ar
Wed Aug 12 06:18:01 PDT 2009


This compiles and runs in D2:

--
import std.stdio;

auto foo() {
     return 1;
}

void main() {
     writefln("%s", foo());
}
--

Since when a non-templated function can have its return type deduced? :)



More information about the Digitalmars-d mailing list