Subj : Re: only posting is rules
To : Tony Master
From : Jasen Betts
Date : Wed Jan 14 2004 07:02 pm
Hi Tony.
13-Jan-04 00:25:42, Tony Master wrote to Scott Adams
TM> |03Quoting message from |11Scott Adams |03to |11Tony Master
SA>> What level of knowledge do you know about them now? I ask so not
SA>> to go WAY basic on you :)
TM> i know they point to a spot in memory
The trick is getting them to point to a convenient spot.
there's a number of ways to do that
NIL is a special pointer constant that is used wehn you want a pointer to
point nowhere
@ can be used to point one at an existing variable
new can be used to create an anonymous variable and point a pointer at it
dispose is the opposite of new and deestroys an anonymous variable if you
have a pointer to it
Where it gets interesting is when you make a record that contains a
pointer to a record of the same type.... then you can create a chain of
records, of any length and add or remove records at either end or in the
middle of the chain, this is called a linked list.
if you add more pointers to the record you can have a branching chain etc...
-=> Bye <=-
---
* Origin: Don't pay your exorcist & get repossessed! (3:640/1042)