Re: loop do .. until end loop is surely incorrect!

new topic     » goto parent     » topic index » view thread      » older message » newer message
DerekParnell said...

I understand what you are saying but I still don't agree.

Well, it remains bizarre to me that you think with entry is better than while 1 do.

DerekParnell said...

but I'm for not duplicating code.

You can always (in all the examples you gave, and any possible use of with entry) replace

  while <condition> with entry do 
    <block a> 
  entry 
    <block b> 
  end while 

with

  while 1 do 
    <block b> 
    if not <condition> then exit end if 
    <block a> 
  end while 

So I'm not letting you have the duplicate code argument.

Regards,
Pete

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

Search



Quick Links

User menu

Not signed in.

Misc Menu