Count in octal: Difference between revisions

m
m (J: rephrase, and explain)
Line 693:
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>(1+disp)^:_</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 repeatat least tha 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.
6,962

edits