Loops/Infinite: Difference between revisions

add RPL
(Loops/Infinite in Tiny BASIC)
(add RPL)
Line 1,865:
goto "infinite_loop"
</syntaxhighlight>
 
=={{header|RPL}}==
Usually in RPL, "printing" an object in RPL means putting it on top of the stack.
In the present case, the loop would not be infinite since sooner or later the stack will overflow.
But if the printer has an infinite paper roll, this will never stop:
≪ "SPAM" '''WHILE''' 1 '''REPEAT''' PR1 '''END''' ≫ EVAL
 
=={{header|Ruby}}==
1,150

edits