debugging mixins

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Mon Oct 3 05:48:50 PDT 2016


On 10/03/2016 07:42 AM, Stefan Koch wrote:
> 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 ?

Mixin expansions.

> 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)

Understood, then keep this on the back burner and forge ahead with the 
warm cache. Thanks! -- Andrei


More information about the Digitalmars-d mailing list