Because += is a mistake and hopefully it's irreparably broken. Does using just s:=s+';'; work?
-- Alexander Grotewohl https://dcclost.com ________________________________ From: fpc-pascal <[email protected]> on behalf of Hairy Pixels via fpc-pascal <[email protected]> Sent: Saturday, October 30, 2021 11:09:49 PM To: FPC-Pascal users discussions <[email protected]> Cc: Hairy Pixels <[email protected]> Subject: [fpc-pascal] String error on Windows Why isn't this syntax valid on Windows? Very confused. ============================ {$mode objfpc} program WindowsTest; var s: String; begin s += ';'; // Syntax error, ";" expected but "const char" found end.
_______________________________________________ fpc-pascal maillist - [email protected] https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
