bug in grammar with ?:

Brett Brett at gmail.com
Tue Sep 17 18:03:20 UTC 2019


Fails(loop is not taken):

for(ulong i = len - 1; i >= (true) ? 0 : 1; i--)


passes

for(ulong i = len - 1; i >= ((true) ? 0 : 1); i--)

Only difference is parenthesis(yes, that is all, doesn't matter 
if it's true or false)








More information about the Digitalmars-d mailing list