New topic in General: Getting a pointer to point to a variable
[EMAIL PROTECTED] - Mon Jun 09, 2008 7:46 pm <http://forums.realsoftware.com/viewtopic.php?t=22829> I need to be able to create a linked list to support a sorting algorithm. I can create a structure consisting of a value, say ALPHA, and two pointers, LAST and NEXT, which allow me to build out an ordered list from an original set of values for ALPHA. There is just about no documentation on the use of pointers in the RB materials. So three questions: 1. Can I establish pointers dynamically at runtime, or must all that I will need be defined by dimension statements? 2. How do I get a pointer to point to the memory occupied by one of my structures? 3. Assuming that I can dynamically create pointers, can I recover the memory when I'm done with them? This process works fine in Delphi (Pascal), where I've done it many times. Thanks in advance for any help. John Doner -- Over 900 classes with 18000 functions in one REALbasic plug-in. The Monkeybread Software Realbasic Plugin v8.1. <http://www.monkeybreadsoftware.de/realbasic/plugins.shtml> [email protected]
