debugging mixins

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Mon Oct 3 04:42:25 PDT 2016


On Sunday, 2 October 2016 at 12:27:23 UTC, Andrei Alexandrescu 
wrote:
>
> Yes, Stefan it would be terrific if you could keep an eye on it 
> while working on the engine. A file with properly handed 
> dependencies could serve as instantiation cache and save a ton 
> of re-instantiation waste. Thanks! -- Andrei

instantiation ?
Do you mean mixin-expansion ?
or are you talking about mixins created in templates ?

Although Caching mixin expansions hits on the same problem as 
chaching template-instances, it is more difficult since a mixin 
can appear anywhere.
and one has to worry about a much wider scope.

I'll see what I can come up with, for now the debugging is 
priority.
@Ethan can you share code illustrating your usecase.
(My head is inside compiler internals and building test-code is a 
rather unpleasant context switch)


More information about the Digitalmars-d mailing list