Post Reply 
PPL programming question; local variables
02-13-2014, 11:47 AM
Post: #7
RE: PPL programming question; local variables
(02-13-2014 07:01 AM)eried Wrote:  I am not sure if Han recommends re-declaring local vars outside and as parameters with the same name. You can do what you tried to do using another names for the parameter.

Anyway in general terms, you should avoid global vars, and unnecessary function calls (if the function is a couple lines and it is called once, then it shouldn't be a function, but also 'very lengthy functions' aren't good anyway).

Thank you. Yes, I was wondering if re-declaring local vars as parameters is what prevents them from being passed to the subroutine ANG(). I was hoping to not have to have (a,b) as separate local variables but maybe I have to in this case.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: PPL programming question; local variables - CR Haeger - 02-13-2014 11:47 AM



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