Currently, if you want to use an exception handler to catch argument
mismatch errors inside of your subroutine, you need to use get_params:
.sub foo
push_eh argument_mismatch
get_params '()'
clear_eh
...
.end
I'd really like to be able to use .param with this:
.sub foo
push_eh argument_mismatch
.param pmc a
.param pmc b
clear_eh
...
argument_mismatch:
print "too few/many arguments to 'foo'\n"
end
.end
.sub main :main
foo(1) # this would print the error and exit
.end
Ideally, I'd also be able to find out how many arguments were
actually passed (1 in this case).
--
Matt Diephouse