Post Reply 
global variables HP-PPL
02-24-2017, 08:26 PM
Post: #2
RE: global variables HP-PPL
It is neither good nor bad. You just need to be aware of the scope of the variables and which has higher priority. It is no different than the following example:

Code:
x:=0;

export myprogram()
begin
  local x;
  x:=2
end;

myprogram() has a local variable named x that has higher priority than the x declared outside of myprogram().

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
global variables HP-PPL - compsystems - 02-24-2017, 08:04 PM
RE: global variables HP-PPL - Han - 02-24-2017 08:26 PM



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