On 2007-04-02, Stokes, Mark <[email protected]> wrote:

> You could also organize your variables into arrays of each
> type.  This way they will be allocated at the same time and in
> contiguous memory.  Then, just use each variable as a separate
> variable as you do now.  You can setup enums with the same
> names you currently use to keep things straight (for
> indexing).  The final benefit for this is if you need to save
> your program state (say to flash for a shutdown or for PC
> programming of internal variables), it is a very easy for
> loop.

Yikes.  Did you used to write Fortran programs back in the 70s?

I vote for fixing the compiler.

-- 
Grant Edwards                   grante             Yow!  "DARK SHADOWS"
                                  at               is on!! Hey, I think
                               visi.com            the VAMPIRE forgot his
                                                   UMBRELLA!!


Reply via email to