Declaring Local and Global in a function

BlitzMax Forums/BlitzMax Programming/Declaring Local and Global in a function

Ok lets say he ment that, and I allocal a global inside the method
Strict

Global Grid[10,10]

Type TA
	Method do()
	GLobal Temp:Ta = self
		do2()
		
		Function do2()
			Local G=Grid[0,0]
			Temp.do3()
		End Function
	End Method 
	
	Method do3()
		Print "OK"
	End Method 
EndType

Global A:TA = New TA
A.do()

Now this works yes?

But mark said "Woops, it's a compiler bug - you should NOT be able to call a method from within a function!"

Which seems very over the top when all grey needed to to was create one little global.

I agree with what you have both posted, but until mark or skid says that the post was in error we cannot be sure