static foreach not working with this
Alex
sascha.orlov at gmail.com
Mon Jan 7 16:58:16 UTC 2019
On Monday, 7 January 2019 at 16:31:49 UTC, Steven Schveighoffer
wrote:
> On 1/7/19 11:16 AM, Michelle Long wrote:
>> On Monday, 7 January 2019 at 16:01:50 UTC, Michelle Long wrote:
>>> [...]
>>
>> static foreach(k, p; AliasSeq!(Alias!this, s))
>> {{
>> p.foo(); // Fails even if this line is removed
>> }}
>
> To expand on Michelle's cryptic response, the second form
> (using `Alias!this` instead of `this`) DOES work!
>
> I think this is a bug. If the latter works, the former should.
> Please file at issues.dlang.org with a complete example.
>
> -Steve
Ah, yes.
More information about the Digitalmars-d-learn
mailing list