>Ian Brayshaw" <[EMAIL PROTECTED]> writes:
>
> > Hi,
> >
> > Given the following lvalue subroutine
> >
> > sub mysub : lvalue {
> > $value;
> > }
> >
> > is there any way for mysub() to be able to determine that it
> > was called in an lvalue context?
>
>No. If you need to know that sort of thing, you kind of have to tie
>the $value that you're going to return, and use that as a proxy for
>the *actual* value. If you're called in an lvalue context then the> tied
>object is going to have its STORE method called...
>
>--
>Piers
Thanks.
I'm new to the discussion of Perl6, so are there any discussions around
providing operators such as wantlvalue and wantvoid
to perform similar queries to wantarray?
Ian
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.