On Fri, 8 Aug 2003, TOGoS wrote:

> I want to be able to have a function with
> this kind of signature:
> 
> func ($param1, *$otherparams)
> 
> AFAIK, there is no way to implement this
> with the current calling conventions. You
> would have to do something with variable
> register IDs, which we don't have and which
> would probably be a bad idea, anyway.
> 
> Maybe non_prototyped pcc subs should
> always have all their parameters shoved
> into an array? (and likewise for return
> values :-). Hopefully most subroutine calls
> will be prototyped, anyway, so it wouldn't
> cause too much of an overall speed-hit, and it
> would make many things a lot simpler (not
> to mention even *possible*).

Why not make $otherparams a PerlArray? 
I haven't gotten this far with python, but
I'm not sure I understand why that 
wouldn't work?

Maybe there should be a register reserved
for an Array and another for a Hash (for
extra keyword arguments)?

Sincerely,
 
Michal J Wallace
Sabren Enterprises, Inc.
-------------------------------------
contact: [EMAIL PROTECTED]
hosting: http://www.cornerhost.com/
my site: http://www.withoutane.com/
--------------------------------------


Reply via email to