User talk:Idrougge: Difference between revisions

→‎local/global variables: added some comments to a talk section.
(→‎local/global variables: added some comments to a talk section.)
Line 150:
There are very few global variables:   RC, RESULT, and SIGL,   and those might not even be considered global   (Regina REXX has a few others as well).   Also, there are things like "ON" conditions, the settings for OPTIONS, TRACE, DIGITS, FORM, FUZZ, ADDRESS, and the like which may be considered global, at least in the sense that those values are carried forward into "lower levels" of subroutines/functions.   -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 20:39, 13 September 2015 (UTC)
:If you use AFunction: PROCEDURE, it has private variables. External programs called as functions are treated as PROCEDUREs, aren't they? --[[User:Idrougge|Idrougge]] ([[User talk:Idrougge|talk]]) 22:31, 13 September 2015 (UTC)
 
:: Well, not quite.   External routines (programs) don't inherit any of the following:
 
::::*   "ON" conditions
::::*   numeric DIGITS
::::*   numeric FUZZ
::::*   numeric FORM
::::*   setting for ADDRESS
::::*   settings for TRACE
::::*   settings for OPTIONS
::::*   usage of the EXPOSE option
::::*   usage of duplicated labels (routine names)
 
and probably some other things as well   (such as the use of the REXX API interface, but that's too complicated to get into).   But,   ''in general'',   external programs can be thought of as PROCEDUREs, ignoring the above exceptions, and possibly others.   -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 22:47, 13 September 2015 (UTC)