Proper use of private?

BlitzMax Forums/BlitzMax Programming/Proper use of private?

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.

Well it is of course a matter of personal preference when you are talking about hobby projects but IMO professional projects should really use it. As for it being slower/faster I wouldn't considered that an issue if I were selling a library for instance, I would gladly take any performance penalty to avoid hosing my users when I had to change something.

What would be nice is if the language supported a Property type field. The compiler could automatically notice this and inline the method code for the getter/setter. Also it could be implemented just like C#. IIRC when you don't supply specific code for a Property field the getter/setter are created for you by the compiler automatically. Also you can set the field to read-only/write-only/read-write.