Re: Exiting multiple loop constructs

new topic     » goto parent     » topic index » view thread      » older message » newer message

Jeremy Cowgar wrote:

> The label keyword I think, unless Rob or Matt has a better idea, 
> pretty important because it fits the idea of how the parser works.

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 ...
while 1 label :top: do


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 ...

while true
     label &&MAIN-PROCESSING-BLOCK: 
   do
     . . . 
   end while



-- 
Derek Parnell
Melbourne, Australia
Skype name: derek.j.parnell

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu