Re: Why end for, end if, end while? Here's why I think...
- Posted by unkmar Jul 29, 2008
- 984 views
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.
Come back next week when I complain about back, neck, and knee pain.