static switch

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Mar 5 14:54:39 PST 2014


On 3/5/14, 11:40 AM, Tofu Ninja wrote:
> On Wednesday, 5 March 2014 at 18:58:49 UTC, Andrei Alexandrescu wrote:
>>
>> The one difficulty is figuring how to allow for all iterations to stay
>> in the same scope, yet not have duplicate definitions of the iteration
>> symbol. Probably worth a DIP. Other than that, we're a go.
>>
>> Andrei
>
> Do you have an idea of how to solve that? If not I have an idea but it
> is a little silly and it would introduce a new feature so I would rather
> wait and hear if there are any other solutions.

My idea revolves around replacing the iteration variable(s) with the 
respective literal(s) before doing semantic analysis. This is probably 
unprecedented.

Andrei


More information about the Digitalmars-d mailing list