[OT] Re: error building gtksourceview



On Tue, 2003-05-13 at 09:10, Anders Johansson wrote:
> On Tuesday 13 May 2003 09:07, Per-Erik Westerberg (EAB) wrote:
> > Is it not bad programming to define variable types within the code
> > instead of at the beginning of the function? Should not bugs be filed
> > for these "faults"?
> 
> It was a checked error in C89, it's permitted in C99. Apart from that it's 
> largely a matter of taste. I prefer it the C89 way, others prefer having the 
> declaration as close as possible to the use.

Personally I decide where to put by looking at the scope of the variable
temp variables that are only used in a very specific place get declared
where I need them.

Ron




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]