Nested Function Memory Exception

BlitzMax Forums/BlitzMax Programming/Nested Function Memory Exception

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

you should NOT be able to call a method from within a function


Method Set:TIntPair (Ax:Int=0,Ay:Int=0)

	Self.FX = Ax
	Self.Fy = Ay
	Return Self
	
End Method
'-----------------------------
Function Create:TIntPair (Ax:Int=0,Ay:Int=0)

	Return New TIntPair.Set( Ax,Ay )
	
End Function

This is my standard allocation code, and it calls a method from within a function, and it NEEDS to do so.

In fact the more I think about it, youve just made a slip of the tounge and ment to say something else havent you?
Because all your fucntions that have been added ontop of the core objects simply call a method anyway dont they?