>>>>> "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes:

DS> On Wed, 30 Aug 2000, Christian Soeller wrote:
>> A second related question: would I be able to return a list of arrays
>> from a function, e.g.
>> 
>> (@fit,@corr) = fitit @x, @y;
>> 
>> How could I find out if the user wants just one array or two?

DS> If this feature goes in, there'll be some sort of way to figure it
DS> out. Damian's got an extended context RFC--odds are that it or something
DS> like it would be used.

Why not just push them onto the stack. Then the assignment operator
(or at least the version in the optree) handles the flattening.

Does it really have to be via context? I offered the possiblity that
if there is a array not in the last position we could interpret the
assignment as a piecemeal assignment.

        (@fit, @corr) = ...;

Otherwise

        ($fit, @corr) = ...;

Would do flattening.

<chaim>
-- 
Chaim Frenkel                                        Nonlinear Knowledge, Inc.
[EMAIL PROTECTED]                                               +1-718-236-0183

Reply via email to