[EMAIL PROTECTED] (Randal L. Schwartz) writes: > How do you indicate to the compiler at the time of compiling: > > lvsub() = FOO > > that FOO should be evaluated in list context? Or scalar context? In all cases but one the context is scalar anyway. The only case when the context could be list context is with lvsub() = ( ...listy thingy... ); So always enforce scalar context would not cause real pain. > Or do you imagine invoking your subroutine before evaluating the > right side of the code (so it can return a scalar/list flag of some > kind), thereby breaking the normal model of assignment where the > right side gets run first? Why not? I couldn't find in the Camel that the right side must be evaluated first (at least not where the assignment operator = is discussed according to the index). -- Johan
- Re: RFC 132 (v1) subroutines should be ab... Jonathan Scott Duff
- Re: RFC 132 (v1) subroutines should b... Jarkko Hietaniemi
- Re: RFC 132 (v1) subroutines should be able t... Johan Vromans
- Re: RFC 132 (v1) subroutines should be able t... Damian Conway
- Re: RFC 132 (v1) subroutines should be ab... Jarkko Hietaniemi
- Re: RFC 132 (v1) subroutines should b... Nathan Wiger
- Re: RFC 132 (v1) subroutines should b... Damian Conway
- Re: RFC 132 (v1) subroutines should be ab... Damian Conway
- Re: RFC 132 (v1) subroutines should b... Chaim Frenkel
- Re: RFC 132 (v1) subroutines should be able to return ... Randal L. Schwartz
- Re: RFC 132 (v1) subroutines should be able to re... Johan Vromans
- Re: RFC 132 (v1) subroutines should be able t... Randal L. Schwartz
- Re: RFC 132 (v1) subroutines should be ab... Johan Vromans
- Re: RFC 132 (v1) subroutines should b... Nathan Torkington
- Re: RFC 132 (v1) subroutines sho... Johan Vromans
- Re: RFC 132 (v1) subroutines should be ab... Damian Conway
- Re: RFC 132 (v1) subroutines should b... Johan Vromans
- Re: RFC 132 (v1) subroutines sho... Chaim Frenkel
- Re: RFC 132 (v1) subroutines... Johan Vromans
- Re: RFC 132 (v1) subroutines... Chaim Frenkel
- Re: RFC 132 (v1) subroutines... Johan Vromans