Richard <rgrdev@gmail.com> wrote:
> rlb@hoekstra-uitgeverij.nl (Richard Bos) writes:
>
> > Peter Pichler <usenet@pichler.co.uk> wrote:
> >
> >> Ed Jensen wrote:
> >>
> >> > done:
> >> > if (sf)
> >> > fclose(sf);
> >> > if (df)
> >> > fclose(df);
> >>
> >> As you wish. I do not like this approach because it requires all
> >> declarations at the top of the function, which IMO is almost as bad
> >> as making them global.
> >
> > Beg to differ. Beg to differ very greatly, in fact. Declarations
> > scattered through the code hailshot-wise are a great way of ensuring
> > that you'll have to hunt for one sooner or later.
>
> Not with any half decent editor.
Ah, yes, I forgot. Desk checks have gone out of fashion. Because they
required that you were, you know, competent. Can't be having that.
> Besides, locally declared variables don't need to be hunted for.
> They are there where you need them.
Your confidence in your fellow programmer is endearing, but ill
deserved.
Richard