Re: Exiting multiple loop constructs
Derek Parnell wrote:
>
>
> Ok, I see what you mean, namely that the concept of a 'label' is that it is
> an optional component of the 'loop' statement, and not a statement in its own
> right. Fair enough, I'll stay within that boundary (for now).
>
>
> Do the parsing rules mean that this below would be valid ...
> }}}
<eucode>
> while 1 label :top: do
> </eucode>
{{{
I tried, that works fine.
> In other words, the symbol used to name a label can contain any character
> except
> whitespace and cannot start with either a digit or '#' or '--'. So it would
> be okay (if not a bit over-the-top) to have ...
>
> }}}
<eucode>
> while true
> label &&MAIN-PROCESSING-BLOCK:
> do
> . . .
> end while
> </eucode>
{{{
I tried that too. It works also.
Also:
while 1
label 25
do
. . .
end while
Works too, although, please do not use it
... The key is it must not contain
a space.
--
Jeremy Cowgar
http://jeremy.cowgar.com
|
Not Categorized, Please Help
|
|