[fpc-pascal] Record operator for assignment
LacaK
lacak at zoznam.sk
Fri Apr 28 10:27:21 CEST 2017
> I see. It’s the parenthesis that are problematic. I guess the solution would be curly brackets:
>
> rec := {x: 1; y: 2; z: 1}
>
> or some magic function like writeln:
>
> rec := TMyRec(x: 1; y: 2; z: 1)
>
> rec := @(x: 1; y: 2; z: 1)
>
> etc…
or use like dynamic array constructor:
(MyArr := TMyDynArrType.Create(value1, value2) );)
rec := TMyRec.Create(x: 1; y: 2; z: 1);
;-)
-Laco.
More information about the fpc-pascal
mailing list