🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.language.objectpascal
Article #26

Pointer dereference

#26
From: Jason Grace
Date: Mon, 04 Oct 2004 16:01
16 lines
976 bytes
Say, you declare:

R = Record
  X, Y: integer;
  S: string;
end;

P = ^R;


...


You then dereference the above S by P^.S, correct?

Sometimes I will see just P.S, without the ^.  When is this legal?
Technical Details
Message-ID: <642169be.0410040801.5e72b647@posting.google.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews1.google.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 109d30,cd66df9d6a4352f3,start
X-Google-Attributes: gid109d30,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews1.google.com!not-for-mail
From: jgrace5@hotmail.com (Jason Grace)
Newsgroups: borland.public.delphi.language.objectpascal
Subject: Pointer dereference
Date: 4 Oct 2004 09:01:03 -0700
Organization: http://groups.google.com
Lines: 16
Message-ID: <642169be.0410040801.5e72b647@posting.google.com>
NNTP-Posting-Host: 204.194.72.112
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1096905664 18923 127.0.0.1 (4 Oct 2004 16:01:04 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 4 Oct 2004 16:01:04 +0000 (UTC)