[fpc-pascal]=?gb2312?B?SG93IHRvIGFzc2lnbiB2YWx1ZXMgdG8gYSByZWNvcmQgdmFy aWFibGU/?=

Martyn Ranyard ranyardm at lineone.net
Thu Aug 1 11:26:26 CEST 2002


At 10:11 AM 8/1/02 +0800, mili wrote:
>Hello, Every one

Hello.

>Could anybody tell me that how to assign all values to a record
>typed variable? I mean that in C I can assign a struct variable
>such as:

type
   aaa = record
     x, y : Integer
   end;

var
   a : aaa;

begin
   with a do begin
      x := 1; y := 0
   end;
end.

Neat, simple, elegent.  Unlike C.

Martyn Ranyard
Free Software Advocate

jabber - joran at amessage.de
icq    - 122500800
irc    - Joran on oftc
msn    - ranyardm at hotmail.com
e      - ranyardm at lineone.net





More information about the fpc-pascal mailing list