Steve Fink <[EMAIL PROTECTED]> wrote: > With it, I've been able to get a bit farther. Found a minor bug where > it multiply defines a label if you make two calls.
Oh well, allways these nasty complicate programs, that want to call a sub twice :) Fixed, thanks. > I'm not sure IMCC is going to be able to autogenerate the prototyped > and nonprototyped versions of the callee's entry code from the same > set of .param declarations. This is currently implemented as the "unprototyped" case. If a sub does expect to be called either prototyped or non-prototyped, the proto specifier of the .pcc_sub SHOULD be omitted. The entry code then looks at C<I0> and does either case. So we should specify, what to do with wrong param counts or wrong types. pcc.t has some examples for this (labeled "unproto" or "exception"). I think we als need the concept of a default value (for at least Pie-Thon's sake - does Perl6 also have default values?) sub f($a, $b=1, $c="Default"); ... &f(42); leo