Objects and Pointers

BlitzMax Forums/BlitzMax Beginners Area/Objects and Pointers

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.

On the same kind of topic. Just tried out this code to explain something to myself:

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

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


Am I right in thinking that square.test is a pointer to ball? As the line

square.test.one=6

changes the value of ball.one?