Discussion Thread: DIP 1044--Enum Type Inference--Community Review Round 1

ryuukk_ ryuukk.dev at gmail.com
Wed Nov 23 17:06:05 UTC 2022


On Wednesday, 23 November 2022 at 16:30:56 UTC, RTM wrote:
> On Wednesday, 23 November 2022 at 15:26:46 UTC, ryuukk_ wrote:
>
>> ```D
>> switch (action.attack_type) {
>>     case MELEE:
>>         if (action.weapon_type == .SWORD)
>>             (...)
>>
>>
>>         if (action.buff_type == .STR_UP)
>>             (...)
>>     break;
>>
>> }
>> ```
>
> Inconsistency. Should be with/without dot in either case.

You are nitpicking, that's a forum quote issue, it was my code 
that he quoted and edited, all my examples have the dot


More information about the Digitalmars-d mailing list