Subject: Re: My first patch...
From: Mike Nordell (tamlin@algonet.se)
Date: Mon Jan 29 2001 - 19:03:17 CST
Leonard Rosenthol wrote:
> (in other words, bracket the TT_BLOCK case block)
>
> Why, because some compilers don't like the fact that you are defining
> a variable inside of a single case of a switch, unless that case is
> separately scoped.
The only thing I found in that block was the variable "i" *defined*
(therefore implicitly declared, but I think "defined" was the word you
intended to use). This scoping has nothing to do with the "case".
Since I find this kind of stuff amusing (I love to tell compiler vendors
they're *violating* an international *standard* ;-) ), what compilers failed
to grasp this?
Would it perhaps be better (?) to simply make that compiler conform in this
matter by putting the (well known)
#define for if(0) {} else for
somewhere early in this file (it's a needed workaround for e.g. M$ crappy
compiler).
/Mike
This archive was generated by hypermail 2b25 : Mon Jan 29 2001 - 19:02:23 CST