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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to