On Sat, Aug 19, 2000 at 05:07:15AM +1000, Damian Conway wrote:
> > > But why introduce a new keyword "lreturn"? What about something like
> > > this?
> > >
> > > sub foo {
> > > my $lvalue : lvalue;
> > > ...
> > > return $lvalue if want('LVALUE');
> > > }
> >
> > Error proneness? (Is that a word?)
>
> It is now :-)
>
> Besides, context can't always tell:
>
> bar ( foo );
>
> Should foo return a copy or an alias?
want() obviously needs an additional parameter: how deep to go
back in the call stack. Which begs also for a way to find out how
deep is the call stack.
--
$jhi++; # http://www.iki.fi/jhi/
# There is this special biologist word we use for 'stable'.
# It is 'dead'. -- Jack Cohen
- RFC 132 (v1) subroutines should be able to return an l... Perl6 RFC Librarian
- Re: RFC 132 (v1) subroutines should be able to re... Jarkko Hietaniemi
- Re: RFC 132 (v1) subroutines should be able t... Jonathan Scott Duff
- Re: RFC 132 (v1) subroutines should be ab... Jarkko Hietaniemi
- Re: RFC 132 (v1) subroutines should b... Jonathan Scott Duff
- Re: RFC 132 (v1) subroutines sho... Jarkko Hietaniemi
- Re: RFC 132 (v1) subroutines should be ab... Johan Vromans
- Re: RFC 132 (v1) subroutines should be ab... Damian Conway
- Re: RFC 132 (v1) subroutines should b... Jarkko Hietaniemi
- Re: RFC 132 (v1) subroutines sho... Nathan Wiger
- Re: RFC 132 (v1) subroutines sho... Damian Conway
- Re: RFC 132 (v1) subroutines should b... Damian Conway
- Re: RFC 132 (v1) subroutines sho... Chaim Frenkel
- Re: RFC 132 (v1) subroutines should be able to re... Randal L. Schwartz
- Re: RFC 132 (v1) subroutines should be able t... Johan Vromans
- Re: RFC 132 (v1) subroutines should be ab... Randal L. Schwartz
- Re: RFC 132 (v1) subroutines should b... Johan Vromans
- Re: RFC 132 (v1) subroutines sho... Nathan Torkington
- Re: RFC 132 (v1) subroutines... Johan Vromans
