New topic: Structures and Pointers
<http://forums.realsoftware.com/viewtopic.php?t=30462> Page 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message Phil M Post subject: Structures and PointersPosted: Tue Oct 13, 2009 12:36 pm Joined: Fri Sep 30, 2005 12:18 pm Posts: 92 I would like to have a MemoryBlock and a Structure share the same memory location... so that writing to one will change the value of the other. This is intended to be controlled within a class so, I can control and define anything, but I don't know how to go about it because the Structure documentation is very light. Any ideas? Top Steve Garman Post subject: Re: Structures and PointersPosted: Tue Oct 13, 2009 1:03 pm Joined: Fri Sep 30, 2005 3:53 pm Posts: 3046 Location: England Why bother with the structure? If you've got a memoryblock in a class you can use it as the backing storage for a number of computed properties that act like a structure. _________________ Steve Garman Using REALbasic 2008r2 Professional on Windows Vista Ultimate and REALbasic 2009r4 Professional on Linux Ubuntu 9.04 Desktop Occasional blog Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 2 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
