develooper Front page | perl.perl5.porters | Postings from January 2001

Re: [PATCH] [ID 20001223.002] lvalues in list context

Thread Previous | Thread Next
From:
Philip Newton
Date:
January 9, 2001 11:06
Subject:
Re: [PATCH] [ID 20001223.002] lvalues in list context
Message ID:
200101091905.UAA84889@smtp1.nikoma.de
On 9 Jan 01, at 11:59, Simon Cozens wrote:

> On Mon, Jan 08, 2001 at 10:21:29PM -0600, Jarkko Hietaniemi wrote:
> > > Shouldn't that be PL_modcount = 10000? An lvalue sub can return more
> > 
> > Uh-oh, I smell an abritrary number.  Maybe something out-of-band
> > should be used to mark an unlimited number of return values?
> 
> That *is* an out-of-band number used to mark an unlimited number of
> return values:
> 
>  % grep 10000 op.c | grep PL_modcount
>         PL_modcount = 10000;
>     PL_modcount = 10000;
>     PL_modcount = 10000;
>             if (PL_modcount < 10000 &&

Hm? What about a function that really does have exactly 10000 return 
values? Or does Perl have a limit on the number of values a function 
can return? What makes 10000 be "out-of-band"?

Cheers,
Phi "($a0000, $a0001, $a0002, ..., $a9997, $a9998, $a9999) = foo()" lip
-- 
Philip Newton <Philip.Newton@gmx.net>

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About