Newsgroups: perl.perl6.internals
From: w...@coleda.com (Will Coleda)
Date: Fri, 18 Apr 2003 15:04:06 GMT
Local: Fri, Apr 18 2003 11:04 am
Subject: Re: IMC and variable number of arguments
I believe the best way to handle this is to pass a PMC (say, a PerlArray)
instead of N single registers. You then know you're passing a single object each time, and can introspect how many there are on the receiving end. Or, pass all the fixed parameters normally, and just use the PMC for the Hope this helps. (FYI, I had the same question looking into tcl - the > Hi, --------------------------------------------- > I have a question about how to handle a variable number of arguments. > According to calling_conventions in the imcc/docs dir, it would be > -- push arguments onto stack and call function > somehow, the extra argument should be removed from the stack, or else, > regards, This message was sent using Road Runner's Web-based e-mail. You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||