-
Notifications
You must be signed in to change notification settings - Fork 103
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
ARGC + ARGV words for pforth scripting #188
base: master
Are you sure you want to change the base?
Conversation
Let's defer this until after we decide to do the custom C demo. |
Fair enough. Just wondering whether it's ok to implement (ARGC, ARGV) words as a custom hack and not as standard words: |
We have not established the need for these examples. I am mainly interested in bug fixes or improving standard compliance. One problem with examples is that they are often not portable and also require maintenance by me moving forward. You may want to start your own repository of "pforth-examples". I can link to it from my READMEs. |
Fair point. Still let me give a quick background of why I'm submitting this series of PRs and finally a quick pitch why I believe this to be beneficial for PForth. Background: Pitch:
Yes, there is some documentation on how to extend PForth with custom code. But not yet to this extend.
Ok, so doing ARG+ARGV as custom code is the way to do it.
Frankly that's a bit more than what I had in mind. Edit: One more thing that is shown is how to mitigate different names for gnu make on different systems. |
Shows how to access any argument after '--' on the Pforth command line
as a custom code solution.
notes:
(TODO: update when it is merged to main so file list becomes much smaller)