We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We use the stack, secretly, to implement do and while, for our loops.
do
while
This works (also in word-definitions):
10 0 do dup . loop
But the following fails:
10 0 do dup . 10 0 do dup . loop loop
This is surprising since the stack should allow nesting properly, but still .. This should be fixed.
> : foo 10 0 do dup 48 + emit loop cr ; > 10 0 do foo loop > 0123456789 > 0123456789 > 0123456789 > 0123456789 > 0123456789 > 0123456789 > 0123456789 > 0123456789 > 0123456789 > 0123456789
The text was updated successfully, but these errors were encountered:
Nothing gets stored on the stack. We'll have to define i to get the current iteration, of course..
i
Sorry, something went wrong.
Fixing this would also increase our test-coverage - perhaps to exceed 99% :)
skx
Successfully merging a pull request may close this issue.
We use the stack, secretly, to implement
do
andwhile
, for our loops.This works (also in word-definitions):
But the following fails:
This is surprising since the stack should allow nesting properly, but still .. This should be fixed.
The text was updated successfully, but these errors were encountered: