Re: [GD-General] Variables scope
Brought to you by:
vexxed72
|
From: Jorrit T. <Jor...@uz...> - 2004-02-04 13:26:24
|
Kristoffer Grönlund wrote:
>The way I've worked around this in the past has been by redefining for as
>follows:
>#define for if (false) {} else for
>
>Yes, it's a hideously ugly hack, but so is the problem in the first place.
>I've never had any problems because of it.
>
>
Hmm... sounds like an ugly solution for something that is more simply
solved by just
declaring the loop counter outside the for.
Greetings,
|