Re: Stupid mwcc compilers ...

Shaw Terwilliger (
Wed, 9 Jun 1999 08:55:16 -0500

Hate to reply to my own message, but...

On Wed, Jun 09, 1999 at 08:45:06AM -0500, Shaw Terwilliger wrote:
> 4 Names declared in the for-init-statement, and in the condition of if,
> while, for, and switch statements are local to the if, while, for, or
> switch statement (including the controlled statement), and shall not
> be redeclared in a subsequent condition of that statement nor in the
> outermost block (or, for the if statement, any of the outermost
> blocks) of the controlled statement; see _stmt.select_.
> But I'm really not sure how I should interpret that. It says "shall
> not be redeclared in ... the outermost block", which I read as the
> parent block of the conditional. But though it does say I'm not supposed
> to use that name at that level, I'm not sure whether it means the existing
> one is available there.

By reading through more of the draft spec, it's pretty obvious by
"outermost block of the controlled statement" and "subsequent condition"
they mean any other {} after a conditional or an elseif()/case:

Shaw Terwilliger

This archive was generated by hypermail 1.03b2.