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 are literals in C++?
How do I start a c++ project?
Can a list of string be stored within a two dimensional array?
What is meant by entry controlled loop?
why is c++ called oops? Explain
What is an adaptor class or wrapper class in c++?
Program to check whether a word is a sub-string or not of a string typed
Does dev c++ support c++ 11?
What is null and void pointer?
What is an operator function? Describe the function of an operator function?
What does int * mean in c++?
What is the extraction operator and what does it do?
What is a lambda function c++?
What is a manipulative person?
What is ios :: in in c++?