Pointers
JB
sundown at pacifier.com
Sun Oct 9 21:12:29 EDT 2016
Livecode has imported foundation which gives users
the ability to access those libraries and it was written
you can use pointers. Pointers are used in both C &
objective-C. You write them a little different but the
basic concept is the same. A pointer points to a
location in memory. A variable is an object which the
pointer points to. If variable X holds the integer 34 &
is located in the memory stack at 4217 the pointer will
simply hold that address which points you to 4217 in
memory so you can access and change the contents
of the memory at 4217 which is the object named X
and it is a variable of the type int or another type.
To efficiently write code using pointers you need a
good understanding of them. Here is a link to one
of the best tutorials I have seen on pointers;
http://pw1.netcom.com/~tjensen/ptr/pointers.htm
This is written for beginners but it is so good even
many advanced programmers with a good knowledge
of pointers will benefit greatly from reading it.
JB
More information about the use-livecode
mailing list