Re: Is this possible?
- Posted by CChris Jul 28, 2008
- 993 views
CChris said...
mic said...
You'd probably want to look it up anyway to see what KINDS of arguments it takes. But it's still a good idea I guess.
Can do, but cannot commit to svn these days
CChris
Hmm, not as clear cut as I thought.
The first non defaulted argument # is known, as well as the total number.
However, you could always code
function foo(integer n=0,integer p,integer q=2,integer r)
I'm not sure what the error message should be then. Perhaps recording the # of the last non defaulted parameter as well would be enough, not too difficult.
CChris