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