Re: Exiting multiple loop constructs
Jeremy Cowgar wrote:
>
> 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:
>
> }}}
<eucode>
> while 1
> label 25
> do
> . . .
> end while
> </eucode>
{{{
>
> Works too, although, please do not use it
... The key is it must not
> contain
> a space.
Kool, we have targets of various forms! Now, onto the keyword for a target:
goto!
Kat
|
Not Categorized, Please Help
|
|