XC-BASIC icon indicating copy to clipboard operation
XC-BASIC copied to clipboard

Compiler crashes if there's an error in a PETSCII escape code

Open mrg-75 opened this issue 4 years ago • 1 comments

If you enter an unrecognised PETSCII escape sequence, the compiler throws an error.

Example:

print "{abc}"

std.conv.ConvException@C:\hostedtoolcache\windows\dc\dmd-2.090.1\x64\dmd2\windows\bin\..\..\src\phobos\std\conv.d(2312): Unexpected 'a' when converting from type string to type uint

mrg-75 avatar Mar 08 '20 21:03 mrg-75

This also happens if you enter a valid PETSCII escape sequence, but not in upper case, like {clr} or {CLr} instead of {CLR}

JJFlash-IT avatar Mar 08 '20 21:03 JJFlash-IT