Re: [fpc-pascal] What is -CO ?

2023-06-09 Thread Martin via fpc-pascal
On 09/06/2023 12:03, Mattias Gaertner via fpc-pascal wrote: Hi, What is -CO? In the docs I can only find this sentence: "Check for possible overflow of integer operations" Done some testing. -CO produces the below warning. program Project1; var a,b: Integer; var c: integer; begin a := Rando

Re: [fpc-pascal] Error: Argument cannot be assigned to

2023-06-04 Thread Martin via fpc-pascal
On 04/06/2023 15:04, Juha Manninen via fpc-pascal wrote: Why the following code fails to compile?   TMyRec = record ... property     RecInstance: TMyRec read fRecInstance;// write fRecInstance; ... MyObj.RecInstance.ii := 123; Access through property seems to be the problem. Accessing fRecI