Re: A "sub" question...



"Adriano Ferreira" <a.r.ferreira@xxxxxxxxx> wrote in message
news:73ddeb6c0512301007x68ef6738sd2e3d59c639b6abb@xxxxxxxxxxxxxxxxx
On 12/30/05, Robert Hicks <sigzero@xxxxxxxxx> wrote:
> Note the leading underscore in the sub name. What does that mean? Is that
> like making it "private"?

>Yes. But as a convention: that means: you sensible reader, don't you
>try to rely on this function outside of this immediate realm of code.
>But you can cheat as you like - at your risk.

Okay, that is cool and a easy way to "mark" something.

Thanks for the answer.

Robert


.



Relevant Pages

  • Re: Double underscores -- ugly?
    ... Nobody calls their own private methods _init or _add ... single leading underscore on the name *is* the convention for ... probably wouldn't cause name conflicts. ... would be confusing not to follow the convention for naming such ...
    (comp.lang.python)
  • Re: About the use of **args
    ... > Except that in Python the convention for private variables is to begin them ... > with two underscore characters, and then it is more than just a convention: ... Where is the Python spelling of "private" set in stone? ...
    (comp.lang.python)
  • Re: I want to see all the variables
    ... Objects with a single leading underscore like _attribute are private ... by convention, ... trailing underscore after it like "file_". ...
    (comp.lang.python)
  • Re: I want to see all the variables
    ... Objects with a single leading underscore like _source are slightly ... Notice that Python doesn't generally try to hide "private" attributes: ... by convention, ...
    (comp.lang.python)
  • Re: Collection disappearing at run time
    ... the Tab so that it doesn't take any arguments. ... > Private _tabHeight As New Unit ... > Public Overrides Property HeightAs Unit ... > Protected Overrides Sub OnInit ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)