I’ve found a bug with the ord() function in Linux Island Oxygene programs. Does not seem to be present with .Net Core programs.
namespace ConsoleApplication1;
type
Program = class
public
class method Main(args: array of String): Int32;
begin
writeLn(ord(false));
writeLn(ord(true));
writeLn(ord(not true));
writeLn(ord(not false));
var x : Boolean := false;
writeLn(ord(x).ToString());
writeLn(ord(not x).ToString());
end;
end;
end.
The last writeLn() displays -1, instead of the expected 1.
Project: testcase.zip (2.4 KB)