Count in octal: Difference between revisions

m
→‎{{header|J}}: remove some bitrot and simplify grammar
(→‎{{header|Ruby}}: doc ref no longer valid, end-less range added)
m (→‎{{header|J}}: remove some bitrot and simplify grammar)
Line 1,702:
So then we define disp as a word which displays its argument in octal and returns its argument as its result (unchanged).
 
Finally, the <code>^:_</code> clause tells J to repeat this function forever, with <code>(1+disp)</code>adding 1 to the result each time it is displayed (or at least thathat clause tells J to keep repeating that operation until it gives the same value back twice in a row - which won't happen - or to stop when the machine stops - like if the power is turned off - or if J is shut down - or...).
 
We use arbitrary precision numbers, not because there's any likelihood that fixed width numbers would ever overflow, but just to emphasize that this thing is going to have to be shut down by some mechanism outside the program.
 
=={{header|Java}}==
6,962

edits