Hi guys,
I was hoping somebody could explain to me what exactly happens when you have a global variable, we'll call it SESSION, and you use the same name in a functions parameter list.
Is this even legal or is the compiler just missing this?
does the parameter act as a local variable inside the function and not even see the global variable?
------------------
Cheers
[This message has been edited by mark smit (edited February 06, 2001).]
I was hoping somebody could explain to me what exactly happens when you have a global variable, we'll call it SESSION, and you use the same name in a functions parameter list.
Code:
type CSession m_Number as long end type global Session as CSession function OpenSession(Session as CSession) as long Session.m_Number = 2048 end function
does the parameter act as a local variable inside the function and not even see the global variable?
------------------
Cheers
[This message has been edited by mark smit (edited February 06, 2001).]
Comment