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
- Re: date interface (was Re: perl... Chaim Frenkel
- Re: date interface (was Re: perl6 requirement... Damian Conway
- Re: date interface (was Re: perl6 requirements, on boo... Matt Sergeant
- Re: date interface (was Re: perl6 requirements, o... Hildo Biersma
- Re: date interface (was Re: perl6 requirement... Matt Sergeant
- wanthash (Was: Re: date interface (was Re: pe... Johan Vromans
- Re: wanthash (Was: Re: date interface (wa... Tom Christiansen
- Re: wanthash (Was: Re: date interface... Johan Vromans
- Re: wanthash (Was: Re: date interface... Damian Conway
- Re: wanthash (Was: Re: date inte... Piers Cawley
- Re: wanthash Dan Sugalski
- Re: wanthash Peter Scott
- Re: wanthash Graham Barr
- Re: date interface (was Re: perl6 requirement... Simon Cozens
- Re: date interface (was Re: perl6 require... Tom Christiansen
- Re: date interface (was Re: perl6 req... Simon Cozens
- wantarray() should be named wantlist() (was R... Tad McClellan
- Re: wantarray() should be named wantlist(... Jonathan Scott Duff
- Re: wantarray() should be named wantl... Clayton Scott
- Re: wantarray() should be named ... Jonathan Scott Duff
- Re: wantarray() should be na... Nathan Wiger
