Skip to content
New issue

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

words created by a defining word without code following does> will cause an error #7

Closed
Bushmills opened this issue Jan 18, 2022 · 3 comments

Comments

@Bushmills
Copy link
Owner

Bushmills commented Jan 18, 2022

example:
: foo create does> ;
foo bar
bar

very most likely the same issue which has been dealt with in : foo ; and empty flow control constructs like begin again, if else then, where I insert a ":" into the function as cheapest no operation replacement in bash.

@Bushmills
Copy link
Owner Author

Bushmills commented Jan 18, 2022

I suppose the solution for this case isn't synthesising a no operation, but instructing detokeniser to drop the does> action entirely.

@Bushmills
Copy link
Owner Author

I found another no-op substitute in (()) which is much faster than : or $void, and changed all places where ":" was synthesised to "(())"

@Bushmills
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant