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.

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to