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 the different types of polymorphism in c++?
How the virtual functions maintain the call up?
How does a copy constructor differs from an overloaded assignment operator?
How did c++ get its name?
What is c++ in english?
How much is c++ certification?
What is the use of "new" operator?
Define a constructor?
Where do I find the current c or c++ standard documents?
Where are setjmp and longjmp used in c++?
Explain how would you handle a situation where you cannot call the destructor of a local explicitly?
Can a program run without main?
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?
State the difference between delete and delete[].
C is to C++ as 1 is to a) What the heck b) 2 c) 10