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 the difference between a type-specific template friend class and a general template friend class?
Which is better turbo c++ or dev c++?
Differentiate between the message and method in c++?
What is microsoft c++ redistributable?
What parameter does the constructor to an ofstream object take?
What is a set in c++?
How important is c++?
what is Member Functions in Classes?
What would happen on forgetting [], while deallocating an array through new?
How do you remove an element from a set in c++?
What is c++ stringstream?
How do I start a c++ project?
What is an iterator class in c++?
Why use of template is better than a base class?
What is function overriding in c++?