[fpc-pascal] Two questions about Pascal
Luca Olivetti
luca at ventoso.org
Fri Jul 30 11:17:50 CEST 2010
Al 30/07/10 00:12, En/na José Mejuto ha escrit:
> I was looking for a "with" like:
>
> with TNX(a) "named" as TNX_a do begin
> with TNXX(b) "named" as TNXX_b do begin
> TNX_a.OP1:=TNXX_b.OP2;
> TNXX_b.OP3:=TNX_a.OP2;
> [.....]
> end;
> end;
>
> But I think that there is nothing like that in Pascal.
No, there's nothing like that in FPC, but that feature was available in
an old Texax Instrument's pascal compiler, though too much time has
passed for me to remember the exact syntax. I think it was something like:
with a=some.record, b=another.record[i] do
begin
a.op1:=b.op2;
b.op3:=a.op2
end;
Bye
--
Luca
More information about the fpc-pascal
mailing list