| : replace-word ( xt cfa -- ) |
: replace-word ( xt cfa -- ) |
| \ replace word at cfa with xt. !! This is quite general-purpose |
\ replace word at cfa with xt. !! This is quite general-purpose |
| \ and should migrate elsewhere. |
\ and should migrate elsewhere. |
| dodefer: over code-address! |
\ the following no longer works with primitive-centric hybrid threading: |
| >body ! ; |
\ dodefer: over code-address! |
| |
\ >body ! ; |
| |
dup @ docol: <> -12 and throw \ for colon defs only |
| |
>body ['] branch compile-prim over ! |
| |
cell+ >r >body r@ - r> ! ; |
| |
|
| forth definitions |
forth definitions |
| ans-report-words |
ans-report-words |