ARGC + ARGV words for pforth scripting#188
ARGC + ARGV words for pforth scripting#188guberathome wants to merge 14 commits intophilburk:masterfrom
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)