Re: Why end for, end if, end while? Here's why I think...

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

I myself have run into the following in recent weeks.

for i = 1 to 20 do 
  if (this) then 
    if (that) then 
    end if 
  end if 
  if (something) then 
     --whatever 
  end if 
  if (more_if) then 
    --go crazy 
  end if 
end if  -- Syntax error 

Notice, the code structure is perfectly accurate. I rarely spot these bugs before execution. Usually I have written a good 40 or 50 lines of code with 3 or 4 of these errors. Some of ifs that are suppose to be fors. Some fors that are suppose to be ifs. And the occassional change of a loop that causes me to have a for that should now be a while.

But hey, I love my little language that catches all my little mistakes.

Lucius L. Hilley III - Unkmar
Come back next week when I complain about back, neck, and knee pain.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu