Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion compiler-faq

Newsgroups: perl.perl6.internals
Path: controlnews3.google.com!news1.google.com!newsfeed.stanford.edu!nntp.perl.org
Return-Path: <br...@brentdax.com>
Mailing-List: contact perl6-internals-h...@perl.org; run by ezmlm
Delivered-To: mailing list perl6-intern...@perl.org
Received: (qmail 84937 invoked from network); 29 May 2004 20:40:04 -0000
Received: from x1.develooper.com (63.251.223.170)
  by onion.develooper.com with SMTP; 29 May 2004 20:40:04 -0000
Received: (qmail 15589 invoked by uid 225); 29 May 2004 20:40:04 -0000
Delivered-To: perl6-intern...@perl.org
Received: (qmail 15575 invoked by alias); 29 May 2004 20:40:03 -0000
X-Spam-Status: No, hits=0.0 required=7.0
	tests=
X-Spam-Check-By: la.mx.develooper.com
Received: from dsl081-033-205.lax1.dsl.speakeasy.net (HELO navi.architechies.com) (64.81.33.205)
  by la.mx.develooper.com (qpsmtpd/0.27.1) with ESMTP; Sat, 29 May 2004 13:40:02 -0700
Received: from [192.168.1.24] (helo=[192.168.1.24])
	by navi.architechies.com with esmtp (Exim 3.35 #1 (Debian))
	id 1BUAYI-0001yw-00; Sat, 29 May 2004 13:35:34 -0700
Message-ID: <40B8F520.6050903@brentdax.com>
Date: Sat, 29 May 2004 13:40:00 -0700
User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502)
X-Accept-Language: en
MIME-Version: 1.0
To: William Coleda <w...@coleda.com>
CC: Perl 6 Internals <perl6-intern...@perl.org>
Subject: Re: compiler-faq
References: <40B7ECCF.6030205@coleda.com>
In-Reply-To: <40B7ECCF.6030205@coleda.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Rating: onion.develooper.com 1.6.2 0/1000/N
Approved: n...@nntp.perl.org
From: br...@brentdax.com (Brent 'Dax' Royal-Gordon)

William Coleda wrote:
> =head2 How do I generate a sub call with a variable-length parameter 
> list in PIR?
> 
> This is currently not trivial. 
...
> =head2 How do I retrieve the contents of a variable-length parameter 
> list being passed to me?
> 
> The easiest way to do this is to use the C<foldup> opcode to take a 
> variable
> number of PMC arguments and wrap them in an C<Array> PMC.

I may just be an idiot, but why can't someone just write C<flattendown> 
(or somesuch) as the complement of C<foldup>?

-- 
Brent "Dax" Royal-Gordon <br...@brentdax.com>
Perl and Parrot hacker

Oceania has always been at war with Eastasia.