🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.borland-delphi
Article #899

Re: Help a newbie

#899
From: Jamie
Date: Wed, 07 Dec 2005 04:06
37 lines
2450 bytes
Nige wrote:
> Looking at some sample code.
> 
> I have a line, which calls a function
> 
> and the 3rd parameter is  @Cells^[0]
> 
> whats do the @ and the ^ and the [0] indicate.
> 
> thanks
> 
> 
  The @ generates an address of an item.
  so lets break this down.

  Cells is being treated like a pointer and
thus the use of ^ meaning that you are
fetching data via the pointer which is like
a road map giving directions of where the
start of the data which makes up the object
"CELLS" resides in.
    Since it's obvious that Cells must not
be a pointer already to start with, using the
@ infront will generate a pointer address of that
object.
    and the use of the [0] is like any other
array from that point on.
  it will simply use the Pointer address as the
starting base with the an offset of what
ever in the [?] to calculate the distant to
move from the start of the pointer.



-- 
Real Programmers Do things like this.
http://webpages.charter.net/jamie_5
Technical Details
Message-ID: <Hpqlf.21$C46.17@fe02.lga>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!peer01.cox.net!cox.net!hwmnpeer01.lga!hwmedia!hw-filter.lga!fe02.lga.POSTED!53ab2750!not-for-mail
References: <Ihplf.160032$Es4.143191@fe2.news.blueyonder.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Thread: 105ac8,d6a31f5e603f498f
X-Google-Thread: fd817,d6a31f5e603f498f
X-Google-Thread: f973d,d6a31f5e603f498f
X-Google-Thread: f894d,d6a31f5e603f498f
X-Google-Thread: 109d99,d6a31f5e603f498f
X-Google-Attributes: gid105ac8,gidfd817,gidf973d,gidf894d,gid109d99,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!peer01.cox.net!cox.net!hwmnpeer01.lga!hwmedia!hw-filter.lga!fe02.lga.POSTED!53ab2750!not-for-mail
From: Jamie <jamie_5_not_valid_after_5_Please@charter.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: alt.comp.borland-delphi,alt.comp.lang.borland-delphi,alt.lang.delphi,borland.public.delphi,comp.lang.pascal.delphi.components.misc
Subject: Re: Help a newbie
References: <Ihplf.160032$Es4.143191@fe2.news.blueyonder.co.uk>
In-Reply-To: <Ihplf.160032$Es4.143191@fe2.news.blueyonder.co.uk>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 38
Message-ID: <Hpqlf.21$C46.17@fe02.lga>
X-Trace: ejlmlnpfppkfdepljfomkkplbbiiibkcbnhegofknkgdhcblocnnlohpkenocblpgfocjibenpmelkaghibnbifkigelfbkolkpajpliojmcabhbmgdbpbacclppddlfbcfagklmibllijll
NNTP-Posting-Date: Tue, 06 Dec 2005 17:55:03 MST
Date: Tue, 06 Dec 2005 20:06:02 -0800