3 ms·
I once made a mistake, but it wasn't a just a loop, it was recursive. I was working in an old version of FOCUS, a reporting language, mixed with DCL. (This was
by ineedasername 8y ago
I once made a mistake, but it wasn't a just a loop, it was recursive. I was working in an old version of FOCUS, a reporting language, mixed with DCL. (This was a VMS environment)
The details are fuzzy now, but IIRC I misplaced a single "GOTO" line of code. The result was doubly recursive: Each person on the list got the message once for every person on the list, with the content of previous recipients concatenated to the message.
So: person 1 got the message once. Then person 1 & 2 got the message again, only person 2's content was appended to person 1. The person 1, 2 & 3 got the message, with 3 appended to 2, and 2 & 3 appended to 1, and so on.
I was very lucky that it was an old VMS environment with low disk quotas, so my "sent" folder ballooned before the full list could run. I think I got through about 130 recipients, which came out to about 8000 messages.