Why does this mixin fail to compile?

IchorDev zxinsworld at gmail.com
Mon Aug 12 11:18:40 UTC 2024


On Tuesday, 2 July 2024 at 16:46:11 UTC, Jonathan M Davis wrote:
> On Tuesday, July 2, 2024 1:23:42 AM MDT ryuukk_ via 
> Digitalmars-d-learn wrote:
>> I said it 2 times already, i don't want string concatenation, 
>> i'll benchmark later, but not right now, right now i'm looking 
>> for a functioning code without string concatenation
>
> D has two options for mixins, and both of them require complete 
> statements.

Not a huge deal, but you forgot about the third option—mixin 
types—which does not require a complete statement: 
https://dlang.org/spec/type.html#mixin_types


More information about the Digitalmars-d-learn mailing list