Re: lvalue functions and lvalue parameters

2006-06-20 Thread Sam Vilain
Jonathan Scott Duff wrote: >> sub cond(Bool $c, $a, $b) is rw { >> if $c return $a else return $b; >> } >> >> Will this fail because $a and $b are not rw? If so, will it fail at run- >> or compile-time? What about this: >> > That looks like it should be a compile-time failure to me. > De

Re: lvalue functions and lvalue parameters

2006-06-20 Thread Jonathan Scott Duff
I don't have any real answers, but I'll weigh in with my opinion anyway :-) On Tue, Jun 20, 2006 at 10:59:01AM +0100, Daniel Hulme wrote: > I've just thought of an interesting interaction with lvalue functions > and call by foo. What if I want to write, say, an lvalue ?? !! function > thus > > s

Re: ~~ with *

2006-06-20 Thread Larry Wall
On Mon, Jun 19, 2006 at 08:51:24AM -0600, Eric wrote: : Just my two cents, but whenever i see "when True {...}" I expect $_ : to be true, so that i can do when True and when False. And I if see : when followed by a comparison i expect the when to be true when the : comparison is true. To me its

[svn:perl6-synopsis] r9716 - doc/trunk/design/syn

2006-06-20 Thread larry
Author: larry Date: Tue Jun 20 11:38:41 2006 New Revision: 9716 Modified: doc/trunk/design/syn/S12.pod Log: s/property/attribute/ from cognominal++ Modified: doc/trunk/design/syn/S12.pod == --- doc/trunk/design/syn/S

[svn:perl6-synopsis] r9715 - doc/trunk/design/syn

2006-06-20 Thread larry
Author: larry Date: Tue Jun 20 11:37:51 2006 New Revision: 9715 Modified: doc/trunk/design/syn/S03.pod doc/trunk/design/syn/S04.pod Log: Smart match moved to S03. Smart match clarifications. Modified: doc/trunk/design/syn/S03.pod ===

lvalue functions and lvalue parameters

2006-06-20 Thread Daniel Hulme
I've just thought of an interesting interaction with lvalue functions and call by foo. What if I want to write, say, an lvalue ?? !! function thus sub cond(Bool $c, $a, $b) is rw { if $c return $a else return $b; } Will this fail because $a and $b are not rw? If so, will it fail at run- or comp