ISO mode does not accept string.
Original Reporter info from Mantis: Thaddy
-
Reporter name: Thaddy de Koning
Original Reporter info from Mantis: Thaddy
- Reporter name: Thaddy de Koning
Description:
In example attached to 0037823, when you compile it by replacing rawbytestring with string, it does not compile.
If you replace it with shortstring it does compile. ISO does not know shortstring, all strings are shortstring by default and identified by the string keyword.
qt.pas(8,8) Error: (5000) Identifier not found "string"
Steps to reproduce:
{$MODE ISO}{$IMPLICIT EXCETIONS OFF}
{$Q+}{$H-}
program gt;
label 1;
procedure jump;
var
a: integer;
b: string[30];
begin
b := 'nanu';
writeln('nanu');
goto 1
end;
begin
jump;
writeln('not jumped!');
1:
writeln('jumped!')
end.
Additional information:
qt.pas(8,8) Error: (5000) Identifier not found "string"
(I agree with Florian that managed types should not be allowed in ISO mode)
Mantis conversion info:
- Mantis ID: 37829
- Version: 3.3.1