Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

Idk about the editor integration problem, but usually when I run into the 'auto' problem what helps me is printing out the type as follows:

typeof(var).stringof.writeln;



view as:

You can also emit the type during compilation, rather than at runtime:

pragma(msg, "var has type: ", typeof(var));


You can also emit the type as a compile error by assigning it to a list or something. A trick I often used when studying C++ back when it was cool.

Legal | privacy