Hacker Read
top
|
best
|
new
|
newcomments
|
leaders
|
about
|
bookmarklet
login
skymuse | karma 27 | avg karma 2.45
2017-08-23 16:47:28+00:00
|
next
[–]
update item
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;
reply
view as:
tree
latest_first
gmfawcett | karma 2398 | avg karma 2.9
2017-08-23 19:54:59+00:00
|
next
[–]
similar comments
You can also emit the type during compilation, rather than at runtime:
pragma(msg, "var has type: ", typeof(var));
reply
nurettin | karma 3395 | avg karma 1.38
2017-08-24 05:07:31
|
next
[–]
similar comments
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.
reply
Legal
|
privacy
typeof(var).stringof.writeln;
reply