> I'll often last out of a loop
Exactly: last , next , redo , ... are just gotos with restrictions.
Throwing exceptions is also a kind of goto.
I remember a talk where TheDamian showed code which was not better written without goto.
Knowing that fire is dangerous led to new methods for heating, cooking and constructing lamps.
But this doesn't mean lighters and matches have no use left and must be strictly forbidden.
PS: next EXPR since 5.18? Wow I missed that one ... (??? o.O ???)
| [reply] [d/l] |
Indeed - processors don't loop, they just jmp
Right in general, wrong in detail. The x86 family has the rep, repz and repnz prefixes since at least 1978 that each implement an implicit while loop in combination with "string" instructions cmps, ins, lods, movs, outs, scas, stos, without any jumps in assembly code.
Alexander
--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
| [reply] [d/l] [select] |