Re: Private variables question



Bruce McGee wrote:

I've also gotten into the habit of prefixing local variables with L.
This isn't so much to make them easier to spot (which it does), but to
make it less likely that a logically named local variable name won't
inadvertently hide another identifier with a higher scope and avoiding
difficult to find bugs.

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.


/rant narrowly averted
.



Relevant Pages

  • Re: Jennifers new book
    ... I have set places for everything and it really bugs me when I go ... I should get my son to file his phone, wallet etc in alphabetical order? ... spot, the same spot, every day, like I do. ...
    (alt.support.diabetes)
  • Re: Google Earth oddity
    ... Hmmm. ... Those crop circles are just a device. ... What's the small round ... area with a spot in the middle, towards the right of the rectangle? ...
    (uk.comp.sys.mac)
  • Re: Is Ad-aware a Delphi app?
    ... Bruce McGee wrote: ... > I have to fix some problems loading .Net assemblies. ... I introduced most of my bugs. ... -- Robert Kozak ...
    (borland.public.delphi.non-technical)
  • Re: Trace landline number
    ... Hmmm... ... then - a spot of IP-based breaking and entering may be ...
    (uk.telecom)
  • Re: Reporting bugs... again
    ... Bruce McGee wrote: ... Sell it as you being a 'Code ... Magician' who can make bugs disappear as if by magic. ...
    (borland.public.delphi.non-technical)