3 ms·
In Dusk OS, I implement does> but with one level of indirection removed. Rather than using create, you bind any number to a behavior. Example: : foo 1+ does> .
by vdupras 1y ago
In Dusk OS, I implement does> but with one level of indirection removed. Rather than using create, you bind any number to a behavior. Example:
: foo 1+ does> . ;
42 foo bar
bar \ prints 43
If you want, you can add the "traditional" indirection in the initialization part, for a similar effect.
So, not quite the same, but almost, and I think it echoes the intuition you have, which is also mine.
- anthk 1y agoI miss decimal output for the stack contents by default (with .S).