At 03:03 PM 8/3/00 +0200, Johan Vromans wrote:
>On Thu, Aug 03, 2000 at 10:53:02AM +0100, Hildo Biersma wrote:
> > If functions could distinguish between
> > 'wantarray' and 'wanthash' this would be easy to do.
>
>This reminds me -- once there was a proposal to extend the wantarray
>functionality on p5p. Anyone remember? Anyone want to turn it into an
>RFC?

This is a major change for context--it'd mean that instead of just 
scalar/list, you have scalar/list/array/hash (at least) depending on what's 
on the left of the =.

And do you want to extend it so that:

   (%bar, $bax) = foo()

works 'right' if foo does a "return %a, $b" as well?

Not that I necessarily mind, but I would like to know. (Some of this info 
will probably be available so we can optimize things like "@A = @B;" to be 
an array copy rather than a flatten/unflatten operation, for example, or so 
that "@foo=<BAR>" dumps straight into the array)

                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to