On Thursday, 4 March 2021 at 17:18:38 UTC, Bastiaan Veelo wrote:
On Thursday, 4 March 2021 at 13:42:47 UTC, Imperatorn wrote:
[...]

It already does this, I would say.

1. The D equivalent of your use of `#if ... #else ... #endif` is `version() {...} else {...}`, which works in VisualD the same way as you show. `static if` is different: the condition often depends on the value of template parameters, so this does not simply translate to "dead" or "alive" in every case.

2. typeid is a runtime concept (takes inheritance into account) so this won't work in an editor outside of a debugging session. However VisualD already shows the (static) type and scope of variables on mouse-over, which is all you can wish for, I think.

-- Bastiaan.

Oh, maybe Visual D has been updated with it lately? When I made the gif (some months ago?) you can see that no type information is available.

Reply via email to