mark lewis wrote in a message to Kim Forwood:
KF> If either Film *or* S is used, the data space increases by
KF> 2816 bytes (2560 for Film + 256 for S).
ml> that's why _all_ of my program sources are similar to the
ml> following...
ml> var this1 : byte;
ml> var that1 : word;
ml> in other words, every var i use has var in front of it ;-)
As to me, I generally only declare a variable when I first find a use for it.
Yes, I plan out programs and often write 'structured english' copies to get
the basic structure down (sometimes during writing or after completion, as a
aid to future maintainace), but I don't often declare any variables until
they're needed (cept things like obvious file variables of course). A program
might start with 3 or 4 vars and end up with 40 by the time it's complete.
Now, if I take some of the global vars out, and replace them with local vars
in programs where one global variable may be recycled for different purposes
in 20 different procedures, will I save or waste space?
Cya..
Dave
Save your BBS! Join INTBBS_WK now!
--- timEd 1.10
---------------
* Origin: GnomeVille MBBS 64-4 235-6887 (3:771/1560)
|