Y
Hacker News
new
|
ask
|
show
|
jobs
by
skymuse
3224 days ago
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;
1 comments
gmfawcett
3224 days ago
You can also emit the type during compilation, rather than at runtime:
pragma(msg, "var has type: ", typeof(var));
link
nurettin
3224 days ago
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.
link
pragma(msg, "var has type: ", typeof(var));