Wish #DefaultPrivate directive for classes and code modules

Discussion in 'Bugs & wishlist' started by Andrew (Digitwell), Aug 7, 2019.

  1. Andrew (Digitwell)

    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

    Code:
    #DefaultPrivate: true
    which defaults the scope of all subs to private UNLESS the public keyword is explicitly used.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice