[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

Re: [ID 20000119.002] 'next' undefines variables in 'continue' block



Hi,

Tim Bunce:
> > There is one remaining problem with local-ized values still being visible
> > in the continue block after a next, but that will have to wait for another
> > day.
> 
> That sounds like a borderline feature. Some people may be using it.
> 
Either a block is a block, no matter how you get there, or the continue
part is embedded in the block it is continuing -- conceptually, that is.

At the moment, we have some sort of pseudo block around a while(){} anyway,
i.e. the variables declared inside the parentheses are visible within the
block but not outside -- even though they're not declared within the braces
 -- so an argument may be made for either case.

Personally, I'd favor the second solution.

-- 
Matthias Urlichs  |  noris network GmbH   |   smurf@noris.de  |  ICQ: 20193661
The quote was selected randomly. Really.    |      http://www.noris.de/~smurf/
-- 
Newman's Discovery:
       Your best dreams may not come true;
       fortunately, neither will your worst dreams.


Follow-Ups from:
Gurusamy Sarathy <gsar@ActiveState.com>
References to:
oracle@tauceti.pcr.com
Gurusamy Sarathy <gsar@ActiveState.com>
Tim Bunce <Tim.Bunce@ig.co.uk>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]