#More Modula-2 Questions
21-Oct-86 21:04:19
Sb: #36864-#More Modula-2 Questions
Fm: Steve Faiwiszewski 74106,425
To: Lon Leader 72355,1754
This message turned up in search, but its forum couldn’t be identified from the original transcript, so it may not be linked into its thread.
1. Simple: Just IMPORT NULL from SYSTEM, and then simply pass it
in the procedure call.
2. Hmmm… It's hard to tell without looking at the code, but maybe
because the variables are local to a procedure, they get allocated
on the stack, and when the procedure returns, the stack space gets
reclaimed and those variables get trashed, except that Intuition
is still using them. When you declare them globally, the variables
"live" throughout the execution time of the program.
How's that for an explanation? What do you think Richie?
– Steve –