[fpc-pascal] TRegistry documentation

Jean SUZINEAU jean.suzineau at wanadoo.fr
Wed Jun 16 14:55:21 CEST 2021


I just add a small program to illustrate the type cast between signed 
and unsigned:

var
    si: ShortInt;
begin
      si:= -127;
      WriteLn( 'si ', si);
      WriteLn( 'Byte(si) ', Byte(si));
      si:= -1;
      WriteLn( 'si ', si);
      WriteLn( 'Byte(si) ', Byte(si));
end.

gives

$ ./project1
si -127
Byte(si) 129
si -1
Byte(si) 255
$





More information about the fpc-pascal mailing list