Anton Ertl wrote: > Just execute a word in your file that accesses the arguments, then > leave gforth (otherwise Gforth's command-line processing will try to > interpret the arguments). E.g.: > > ----------------- > \ call this with "gforth xxx.fs arg1 arg2" > > : echo > argc @ 2 +do > i arg type > loop ; > > echo bye > ------------------ > > When I do > > gforth xxx.fs foo bar boing > > this outputs > > foobarboing > > A disadvantage of this method is that you don't know reliably where > the arguments that interest you are starting. (If people are really > interested in this kind of stuff, we might add a method to do this).
I have now done this. In the next release, you can always access the next argument not used by the system with "1 arg" (there will also be SHIFT-ARGS to throw the current first argument away). The disadvantage is that you will have to change the 2 in the program above to 1. - anton --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
