Jump to content

Loops/While: Difference between revisions

Line 512:
 
=={{header|Dc}}==
{{incorrect|Dc|This implements a DO/UNTIL loop. See discussion page for more.}}
People may think all loops in Dc looks alike. In fact, there aren't loop, but conditional execution in Dc. You expand and execute the content of a register (in here, p) whenever the condition is satisfied.
<lang Dc>1024[p2/d0<p]dspx</lang>
169

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.