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 unnitialised pointer?
What is a try block?
What is the difference between while and do while loop?
What are c++ manipulators?
Is there a c++ certification?
Write a function that swaps the values of two integers, using int* as the argument type?
Why is standard template library used?
the maximum length of a character constant can be a) 2 b) 1 c) 8
What is the best way to declare and define global variables?
Is C++ case sensitive a) False b) Depends on implementation c) True
Differentiate between an inspector and a mutator ?
What is the maximum value of a unsigned char a) 255 b) 256 c) 128
What do you mean by a template?
Difference between struct and class in terms of access modifier.
What is do..while loops structure?