On 30 Jun 2015, at 20:54, silvioprog wrote:
>
> The code above compiles fine in Delphi (tested in XE 7), but in FPC I got the
> following compiling error:
>
> Unit1.pas(46,14) Error: Incompatible types: got " procedure({Open} Array Of Byte;out AnsiString) of object;Register>" expected
> " Ans
Am 02.07.2015 um 12:37 schrieb Serguei TARASSOV:
>
> Be honest, I have doubts about "Pascal spirit" of this genre.
FPC tries to support all flavours of pascal, even ISO. If you are
interested only in one flavour, just add the appropriate mode switch to
your config and be done. If FPC limited itse
> What do you mean, your question is not clear ?
Since r is set to 256, the [0..r] probably doesn't work, even with the
range check turned off. So I assume he's really asking for larger sets.
Jeff
___
fpc-pascal maillist - fpc-pascal@lists.freepasca
On Sat, 4 Jul 2015, silvioprog wrote:
Hello,
Is there any compiler switch to increase the range limit check for operations
like this?:
{$R-}
var
r: SmallInt = 256;
i : SmallInt;
begin
i := 10;
if i in [0..r] then
WriteLn('OK')
else
WriteLn('Fail');
end;
What do you mean