Re: Private variables question



Tom Corey wrote:

Hmmm, that has a certain appeal. Especially in light of our 75,000
lines of
distinctly-procedural-despite-having-been-written-in-Delphi-spaghetti-
co de.

It struck me odd at first, but it saves me lots of grief. I run
CodeHealer (highly recommended) against all of my projects, especially
new ones that I'm taking over, and I was surprised to see how often
local variables hide things. Using a standard prefix avoids me having
to come up with some kind of meaningful-yet-different local variable
name.


/rant narrowly averted

I might join you in that rant.

--
Regards,
Bruce McGee
Glooscap Software
.



Relevant Pages

  • Re: Local variable addresses changing
    ... > local variable adress changing problem after d=abs? ... The odd thing, though, is that your explanation precisely ... It's possible your assignments to local variables are ... overwriting stack locations that are used for other purposes. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Dispose(bool), Idisposable, form closing etc.
    ... variable that is no longer used is eligible for garbage collection even while the variable is in scope. ... Why it would, I don't know...seems like an odd thing to do, but then I've seen some seemingly odd code in Windows. ... However, you're right that parameters are treated differently from local variables, and as long as the parameter references the instance for the duration of the call to the method, the instance won't be collected. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Private variables question
    ... Bruce McGee wrote: ... It just looked odd. ... If it has a higher scope, it is most of the time a global one, or a ... I also have a few standard names for local variables: ...
    (borland.public.delphi.non-technical)
  • Re: Private variables question
    ... Rudy Velthuis [TeamB] wrote: ... local variables. ... It just looked odd. ...
    (borland.public.delphi.non-technical)