I love what I've been seeing about BlitzMax (optional Strict, double-precision floats, etc.) and really look forward to getting into it. However, I'll be holding off on it (even the demo) for a while in order to finish up a couple of Blitz3D projects first (I don't want to start confusing syntax and capability among Blitz versions <g>).
Thus, I'm asking here whether BlitzMax has static local variables for functions. Something like:
Thus, I'm asking here whether BlitzMax has static local variables for functions. Something like:
Function Foo() Static Local Bar Bar = Bar + 1 Return Bar End Functionso that Foo returns 1 the first time that it's called, 2 the second time, etc. This would be a nice improvement over having to use Globals for this purpose (which cuts across scope boundries) as Blitz3D currently requires. Does BlitzMax have this handy capability?