[futurebasic] Re: [FB] More big global info

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : August 1999 : Group Archive : Group : All Groups

From: Mark Goodes <wave@...>
Date: Wed, 05 Aug 1998 13:34:34 -0700

Paul Bruneau wrote:

>
>
> I think I will implement a version of Jamin's suggestion (or perhaps use
> a handle instead of a pointer), it's just that using
> gBigAssRecord.whatever% is a lot easier for me than handle maintenance.
>

If you do the following, chances are that you'll have to make minimal changes to
your code.  Excuse the continuation of the David Letterman terminology.

Local Fn DoRecord
gBigAssHandle&=fn NEWHANDLE(_gBigAssRecordSize)
gBigAssRecord&=[myHandle&]
gBigAssRecord&.whatever%=someValue%
someOtherValue%=gBigAssRecord&.whatever%
End Fn

In this way you only use 8 bytes of global space for your global record and you can
still make use of your record structure.