Execute HQ9+: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 218: | Line 218: | ||
} |
} |
||
ulong accumulator; |
|||
foreach (immutable c; args[1]) { |
foreach (immutable c; args[1]) { |
||
switch(c) { |
final switch(c) { |
||
case 'Q', 'q': |
case 'Q', 'q': |
||
writeln(args[1]); |
writeln(args[1]); |
||
Line 242: | Line 242: | ||
accumulator++; |
accumulator++; |
||
break; |
break; |
||
default: |
|||
assert(0); |
|||
} |
} |
||
} |
} |