[fpc-pascal] String error on Windows
Alexander Grotewohl
alex at dcclost.com
Sun Oct 31 04:50:36 CET 2021
Because += is a mistake and hopefully it's irreparably broken.
Does using just s:=s+';'; work?
--
Alexander Grotewohl
https://dcclost.com
________________________________
From: fpc-pascal <fpc-pascal-bounces at lists.freepascal.org> on behalf of Hairy Pixels via fpc-pascal <fpc-pascal at lists.freepascal.org>
Sent: Saturday, October 30, 2021 11:09:49 PM
To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
Cc: Hairy Pixels <genericptr at gmail.com>
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20211031/0c9fdd44/attachment.htm>
More information about the fpc-pascal
mailing list