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 use of turbo c++?
What do you mean by vtable and vptr in c++?
Why we use #include conio h in c++?
What is a type library?
Is python better than c++?
What is format for defining a structure?
Is it possible to use a new for the reallocation of pointers ?
Explain unexpected() function?
What are c++ storage classes?
Write a program to find the Factorial of a number
Can c++ be faster than c?
Describe public access specifiers?
What is the iunknown interface?
If dog is a friend of boy and boy is a friend of house, is dog a friend of house?
Is c++ double?