Shortcut to refer to a type field?

BlitzMax Forums/BlitzMax Beginners Area/Shortcut to refer to a type field?

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

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