Exactly FlameDuck. AngelDaniel, don't use that crappy pointer solution (NO offense Rob - it worked, but really it's sort of going about things the hard way and circumventing the whole reference thing going on with BlitzMax). Not BlitzMax is here and offers a lot of new (Old) techniques for doing programming, use them. They have lots of advantages. Resorting to oldschool stuff will just make your job more of a pain in the arse.
Make an accessor method. e.g. Have a method in mytype3 that gets you a mytype2. Then you just go
Thing.bvar().avar=23
OR do this.
Thing.setAvar(23)
Thing.getAvar(34)
These things should be methods anyway, cause accessing other Types' field sort of breaks the whole encapsulation thing just a tad.
Aaron
Make an accessor method. e.g. Have a method in mytype3 that gets you a mytype2. Then you just go
Thing.bvar().avar=23
OR do this.
Thing.setAvar(23)
Thing.getAvar(34)
These things should be methods anyway, cause accessing other Types' field sort of breaks the whole encapsulation thing just a tad.
Aaron