Re: New keyword added: continue

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

c.k.lester wrote:
> I vote for 'next.' I think VBA uses next and I use VBA at work.

VBA does not use next as a continue. It uses next as a end for...


for int i = 1 to 10
   ' do some code here
next

To implement continue in VBA you use goto...

for int i = 1 to 10
    if i = 5 goto continue
    ' do some code
continue:
    ' Label right next to the end of the for loop
next

So, next in Euphoria would conflict totally w/your next in VBA.

--
Jeremy Cowgar
http://jeremy.cowgar.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu