Objects and Pointers

BlitzMax Forums/BlitzMax Beginners Area/Objects and Pointers

yes
Type TSquare
   Field test:TBall
EndType

Local square:TSquare
square= New TSquare

Type TBall
   Field one:Int
   Field two:Int
EndType

DebugStop
Local ball:Tball
ball = New tball
ball.one=3
print ball.one

square.test=ball
square.test.one=6
print ball.one

run this