Re: Compulsive use of With



"Bruce McGee" <bmcgee@xxxxxxxxxxxx> wrote in message news:xn0fltrkcfd0uv000@xxxxxxxxxxxxxxxxxxxxxxxxx

I had thought the author was just a little over-enthusiastic, like a
kid with a new toy, but now I'm starting to think it's a compulsion.
If he sees any place where a With statement could conceivably be used,
he just can't help himself.


If he's not nesting them then he's not (yet) compulsive. <g>

I have inherited code along the lines of:

with identA, identB, identC do
begin
// ...
with identD do
begin
// ...

....and on for procedures spanning at least 100s and in a few cases, 1000s of lines.

--
Wayne Niddery - TeamB (www.teamb.com)
Winwright, Inc. (www.winwright.ca)

.