William Coleda <[EMAIL PROTECTED]> wrote:
I was going to submit this as a patch, but I ended up with a conflict, and Dan threatened he wouldn't apply it anyway, so I'll just post it here for comment. Feel free to apply any or all of it. I would be very happy to hear of a better way to answer the first question. =-)
Your answer is about compiling a subroutine that does something. What's wrong with the current wording:
How do I generate a sub call with a variable-length parameter list in PIR?
Use unprototyped calls and functions and pass as many arguments as you have.
How to I retrieve the contents of a variable-length parameter list being passed to me?
You can check the passed parameter count in the subroutine with the argcP variable. A simpler way is to use the foldup opcode, which creates an array of all passed arguments.
It would be helpful to have small, *runnable* source code examples along with the answers. Actually, its more important to have these code examples than writing around them imho.
-sterling