The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
Prime: different kind of variables in programs (visibility)
12-23-2013, 01:13 AM
Post: #1
Prime: different kind of variables in programs (visibility)
Exemple program code
Code:
EXPORT MyExpVar;
MyGlobVar;

EXPORT MYFunc()
BEGIN
LOCAL MyLocvar;
...
END;
MyExpVar is visible everywhere, in all functions of all programs, and Home and memory manager. It is the EXPORT keyword that make it visible from outside of program.
MyGlobVar is visible in all functions in this program
MylocVar is visible in this function of this program only.

MyExpVar and MyGlobVar keep their values between runs of the program.
And they are reset to source code values every time the program is recompiled.

Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Prime: different kind of variables in programs (visibility) - patrice - 12-23-2013 01:13 AM



User(s) browsing this thread: 2 Guest(s)