nested functions with assume-global
Posted: 01 May 2024, 10:14
Hallo.
I have this nested functions:
into inner2(z), if I use
global
I obtain this warning:
"Warning: This variable appears to never be assigned a value."
if I no use
global
it seem works: why?
Is it possible use
global
without generate any problem?
I tested to declare
Global
into the outer(...) function is like to declare Global into all nested functions: then what is the meaning to declare Global into any nested function?
I have this nested functions:
Code: Select all
outer(x)
{
inner1(y)
{
global
iTest := 1
}
inner2(z)
{
global
inner1(1)
}
}
global
I obtain this warning:
"Warning: This variable appears to never be assigned a value."
if I no use
global
it seem works: why?
Is it possible use
global
without generate any problem?
I tested to declare
Global
into the outer(...) function is like to declare Global into all nested functions: then what is the meaning to declare Global into any nested function?