Wish #DefaultPrivate directive for classes and code modules

Andrew (Digitwell)

Active Member
Licensed User
At the moment, all subs in a code module or class default to public visibility unless the private keyword is used.

This mean that when I am creating a class, I need to remember to add private to all of the subs I do not want to be visible. In certain circumstances there are a great many more private subs than public subs.

It would be great if there could be a new directive

B4X:
#DefaultPrivate: true
which defaults the scope of all subs to private UNLESS the public keyword is explicitly used.
 
Top