TIP: Click on subject to list as thread! ANSI
echo: pascal
to: MARK LEWIS
from: DAVID CHORD
date: 1998-05-19 11:34:00
subject: You grasser!

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.