> > $primary_context = want 'LIST', 2, 'LVALUE';
>
> So these arguments can be passed in any order, and want checks them? I
> like it. But I worry if you say something like:
>
>my 42 @stuff = get_data;
>
> And get_data looks like:
>
>sub get_data {
Great changes, Damian! I'm just going to check on some clarification:
> When C is called with arguments in a scalar context:
>
> $primary_context = want 'LIST', 2, 'LVALUE';
So these arguments can be passed in any order, and want checks them? I
like it. But I worry if you say something
On Tue, Sep 19, 2000 at 07:47:58AM -, Perl6 RFC Librarian wrote:
> Subroutines: Replace C with a generic C function
Just as long as I can still say:
return want 'LIST' ? @some_array
: $some_scalar;
I'll be happy. And, of course, want 'LVALUE'.
--
Michael G Sch
This and other RFCs are available on the web at
http://dev.perl.org/rfc/
=head1 TITLE
Subroutines: Replace C with a generic C function
=head1 VERSION
Maintainer: Damian Conway <[EMAIL PROTECTED]>
Date: 6 Aug 2000
Last Modified: 18 Sep 2000
Mailing List: [EMAIL PROTECTED]
Number: 21