DIP81: Writing files at compile time

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Wed Aug 12 23:53:14 PDT 2015


On 2015-08-13 01:27, Tofu Ninja wrote:

> A simple alternative to this would be a flag to the compiler to expand
> mixins and output the new files. This would also be great for tooling,
> an IDE could use this and allow you to expand a mixin in place to see
> what it looks like. And currently all the auto complete engines I have
> seen for D don't handle mixins very well. Expanding them would make
> autocompletion a simpler job.

I agree, this is much better. I remember the old Eclipse plugin, 
Descent. It had a compile time view which showed how mixins where 
expanded and how some language features where lowered, i.e. "scope" to 
try-catch-finally.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list