Answer Posted / lovly
One of the really big pluses with GOSUB/RETURN is that you
can share variables that are neither global nor restricted
to one piece of code.
With or without that functionality, how about a way to
share variables (with memory of course) between only
certain subs/functions? Something like:
(per function/sub)
"STATIC SHARED as integer namespace_name.variable_name =
0" -OR-
"STATIC SHARED namespace_name.variable_name as integer"
Usage would just be: "variable_name" -- no "." or namespace
prefix.
I think that would be a great addition to FB. Thoughts
| Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
What is a list c++?
Why do we use the using declaration?
Do class declarations end with a semicolon? Do class method definitions?
What is problem with overriding functions?
What is difference between c++ 11 and c++ 14?
When does a name clash occur in c++?
what are the iterator and generic algorithms.
Keyword mean in declaration?
How can you specify a class in C++?
What does I ++ mean in c++?
How are pointers type-cast?
Is the declaration of a class its interface or its implementation?
What are put and get pointers?
Can the creation of operator** is allowed to perform the to-the-power-of operations?
What would happen on forgetting [], while deallocating an array through new?