Re: Global Const vs Public Const

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"Bob O`Bob" <filterbob@xxxxxxxxxxxxxxx> wrote in message
news:esdxVUp1GHA.4972@xxxxxxxxxxxxxxxxxxxxxxx
Seems to me more a fault of vb. Public should be used everywhere and
behave the same.

That's ludicrous because different behaviors are *needed*

Actually no you're statement is ludicrous. There is absolutely no reason at
all the behaviour should be any different.

It's not much of an issue anyway as public variables in a module
should be extremely rare. I only declare instances of classes as public
in a module anyway. I just checked my app which is quite large and there
are 2 public vars in a module which I didn't add. Surely something that
has such wide scope should be private and wrapped in a property anyway.

That's just an opinion.

It's fairly well accepted that global variables should be minimised.

Michael


.



Relevant Pages

  • Re: kids and their furniture?
    ... I would always honor and respect any house rules I was ... standards that differed significantly from the range of behaviors ... I think it's pretty close to the legal 'reasonable person' standard. ... too much work to reason one's way through every single ...
    (misc.kids)
  • Re: How to in uml
    ... there is no reason to assume that all B ... objects *must* use a C object internally to implement *their* behaviors ... > correct before one worries about where to access properties. ... > can break existing clients. ...
    (comp.object)
  • Re: How bout it Krause?
    ... >> Actually there is no excuse for any of the behaviors and statements I ... >> Take your sermon over to the other side of the fence Chuck. ... who would presume to demand that other people behave in a certain ... >he or she also behaved in a manner that demonstrated a respect for the ...
    (rec.boats)
  • stallion rage in gelding?
    ... BO went out to get the lead rope and Reason got this really evil, ... his eye on my horse, but he was really scared the whole time. ...
    (rec.equestrian)
  • Re: Code Coverage and QC
    ... > to the number of behaviors. ... Total behaviors = known desired behaviors + know undesired behaviors ... > exhaustive metrics checking. ... Is there any reason to believe it is so? ...
    (comp.object)