If a newLISP executable program is followed by parameters the program must finish with and (exit) statement, else newLISP will take command-line parameters as additional newLISP scripts to be loaded and executed.
newLISP takes a.txt and b.txt as newLISP scripts ,
because go.lsp dose not have (exit) statement.
In the first example,
After go.lsp was loaded , a.txt is loaded.
Symbol hello is evaluated as nil.
In the second example,
S-expression (hello) is evaluated and then the error occurs.
Yep. seems counterintuitive. I did notice the (exit) bit--in my example it was commented out, I think. I was confused because I never told newlisp to read anything. Just of the top of my head, it seems like the argument should have been treated as though it was "bob," or anything else. It just happened to be a file name.
Thanks, though. What is this "documentation" you speak of? It sounds strange and wonderful...