TIP: Click on subject to list as thread! ANSI
echo: quik_bas
to: JACK HUDGIONS
from: BERT BYFIELD
date: 1998-03-24 22:17:00
subject: STATIC Procedure Question

> BB| SUB DoIt (s$) STATIC
>   | FUNCTION DoItAgain (s$) STATIC
>   |
>   | Anybody know what this does and why it matters?
 JH> It preserves the local variables in the procedure between calls.  It's
 JH> generally faster, since the variables don't have to be re-created each
 JH> time the procedure is called, but the down side is the memory they use
 JH> isn't freed when the procedure is not running.
Oh, a global static-variable specification. Okay, thanks. I
thought it was something more esoteric.
  Also, if they are all static, you have to remember to
reinitialize them all rather than assuming zero values.
 * JABBER v1.2 * Hal 9000: "Dave, put those Windows disks down... Dave... 
DAVE!"
--- QScan/PCB v1.17b / 01-0406
---------------
* Origin: Knight Moves - Rochester,NY 716-865-2106 (1:2613/313)

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™.