SyntaxBomb - Indie Coders
Languages & Coding => Blitz2D, BlitzPlus, Blitz3D => Topic started by: hosch on May 27, 2020, 07:45:35 AM
-
EDIT
Well, you shouldn't name your newly created type after a local variable you have declared in a function and try to access it globally :-X
-
It's really important I feel, to keep functions, vars, Types and their instances all very clearly distinctly named.
Like how this can compile and run … but is terrible.
Global A$ = "A"
Type A
Field A%
End Type
A
Print A
WaitKey()
Function A()
Local A.A = New A
A\A = "A"
End Function