Could really do with a Delphi "WITH" equivalent

BlitzMax Forums/BlitzMax Programming/Could really do with a Delphi "WITH" equivalent

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.

The real problem here is not to have 'private' 'public' and 'friend' properties for methods, functions and fields in clases. In that scenario it could be a good practicle to not modify directly atributes unless you know exactly what side effects you will get. In the ideal world, with this kind of private, public and friend modifiers, you could just modify whatever the object exposes, becouse if it is exposed, modifications are allowed (or object is bad designed).