[A83] Re: allocating uninitialized memory? + _insertmem


[Prev][Next][Index][Thread]

[A83] Re: allocating uninitialized memory? + _insertmem




> >It's still sloppy, though.  You can't absolutely guarantee that another
> >program won't already exist with the same name - although you could
> >manually
> >check that, I suppose.
>
> That seems like a silly arguement.  If your program is named Bingo, say,
> create a program named BINGODATA or whatever.  Talking about garantees
isn't
> going to get you anywhere, and you can't absolutely garantee that there
will
> be free RAM space no matter what method you use.  At least this way you
can
> garantee that the system isn't going to scribble all over your data
because
> you put it into what is essentially scratch space.
>
>
>
>
Well, who's to say that there isn't already a program on the calculator
called "BINGODATA" (if programs could have 9 character names, that is)?  And
besides, the only reason you would use this method that I can think of would
be to save data for future use.  But then you run into troubles with keeping
data in sync - making sure that the user didn't delete the save program, or
whether it's archived or not etc.  IMHO, it is generally better to use a
shell that supports writeback or write the data back yourself when you need
to store vital data.

Using the free RAM space for temporary buffers/lookup tables or whatever is
a cleaner method with a hell of a lot less overhead.




Follow-Ups: References: