Leopold Toetsch wrote:
> TOGoS wrote:
>>>> Unprototyped :-) I guess I didn't make that
>>>> quite clear, enough.
>>>
>>> Setup a param array, that's all.
>>>
>>> leo 
>> Umm... OK. Here's what I've done: I created 2
>> functions that I can use when dealing
>> with variable-length parameter lists. One
>> to turn an array into pcc-compliant parameters,
> 
> Wrong approach AFAIK. Just pass the array as one
> param. Its like the
> slurpy [EMAIL PROTECTED] in Perl6. In printstuff you then iterate
> over this array and
> print items.
> 
> leo

But how is the caller supposed to know to do that?
Remember, I plan to get the 'printstuff' function by
saying:

   find_lex P0, "printstuff"

As far as the caller knows, the function it's calling
could have a signature like

   func (thing1, thing2, *morethings)

or like

   func (*lotsofparamshere)

That's the problem with being unprototyped :-)

How will Perl6 deal with anonymous subs with
slurpy params? And while we're at it, how will
it deal with anonymous subs with named params?
That one's even harder ;-)

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

Reply via email to