I'm learning Blitz Max and C++ kind of at the same time. I was wondering if there is a equivalent statement for static in c++ to Blitz Max. This is the static that can be used in classes in C++.
static?
BlitzMax Forums/BlitzMax Programming/static? i read somewhere that putting a global in a type is a static variable
Yea, use Global.
sweet!
if you use global in a Function / Method there are actually 2 different possibilities:
Static or Const
If you have global varname = XXX in a line it will end up as const at least on object. The new will not be reexecuted.
If you want the newe to be reexecuted, use global var and the initialization in a different line
Static or Const
If you have global varname = XXX in a line it will end up as const at least on object. The new will not be reexecuted.
If you want the newe to be reexecuted, use global var and the initialization in a different line