R
Richard Heathfield
Gordon Burditt said:
Or just:
quit:
return x;
return x;
goto quit;
This will eventually slow the program down enough that it will notice the
return statement.
Um, I wish I were joking. I think it was Wilf Hey, in PC Plus magazine a few
(or a few dozen?) years ago, who related the time when a colleague of his
did exactly this kind of "HALT : HALT : GOTO TOP" thing, and for this very
reason. I don't think Wilf was making it up.
I presume this programmer also ends his functions like this:
return x;
return x;
return x;
Or just:
quit:
return x;
return x;
goto quit;
This will eventually slow the program down enough that it will notice the
return statement.
Um, I wish I were joking. I think it was Wilf Hey, in PC Plus magazine a few
(or a few dozen?) years ago, who related the time when a colleague of his
did exactly this kind of "HALT : HALT : GOTO TOP" thing, and for this very
reason. I don't think Wilf was making it up.