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

2007-01-27 Thread John Macdonald
On Sat, Jan 27, 2007 at 06:18:50PM +, Nicholas Clark wrote: > Is it defined that $a + $b evaluates the arguments in any particular order? > Even guaranteeing that either the left or the right gets completely evaluated > first would be better than C :-) In C, that is deliberately left undefined

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

2007-01-27 Thread larry
Author: larry Date: Sat Jan 27 13:27:55 2007 New Revision: 13541 Modified: doc/trunk/design/syn/S05.pod Log: Note that @ish quoting forms can save wear and tear on the <' '> keys. Modified: doc/trunk/design/syn/S05.pod =

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

2007-01-27 Thread Nicholas Clark
On Sat, Jan 27, 2007 at 12:59:59AM -0800, [EMAIL PROTECTED] wrote: > +As in C, these operators increment or decrement the object in question > +either before or after the value is taken from the object, depending on > +whether it is put before or after. Also as in C, use of multiple side > +effec

Re: Remember: Outlaw to declare a lexical twice in the same scope

2007-01-27 Thread Smylers
Carl Mäsak writes: > my $foo; > # ...later in the same scope... > my $foo; # illegal Perl5, legal Perl6 That isn't illegal in Perl 5. It yields the warning: "my" variable $foo masks earlier declaration in same scope but it does work. Smylers

Re: Remember: Outlaw to declare a lexical twice in the same scope

2007-01-27 Thread Carl Mäsak
Dave (>), Carl (>>): > my $foo; > # ...later in the same scope... > my $foo; # illegal Perl5, legal Perl6 No, that's perfectly legal in perl5; it just generates a warning: use warnings; my $x = 1; my $f1 = sub { $x }; my $x = 2; my $f2 = sub { $x }; printf "f1=%d f2=%

Re: Remember: Outlaw to declare a lexical twice in the same scope

2007-01-27 Thread Dave Mitchell
On Sat, Jan 27, 2007 at 10:23:03AM +0100, Carl Mäsak wrote: > my $foo; > # ...later in the same scope... > my $foo; # illegal Perl5, legal Perl6 No, that's perfectly legal in perl5; it just generates a warning: use warnings; my $x = 1; my $f1 = sub { $x }; my $x = 2; my $f2

Re: Remember: Outlaw to declare a lexical twice in the same scope

2007-01-27 Thread Carl Mäsak
Steve Lukas (>): Hi @larry, I want to remember to my proposal from september 2006. It targets on changing S04. The discussion is summarized on: http://www.oreillynet.com/onlamp/blog/2006/09/weekly_perl_6_mailing_list_sum_3.html So, please change S04 as discussed. I, too, would like to point to

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

2007-01-27 Thread larry
Author: larry Date: Sat Jan 27 00:59:58 2007 New Revision: 13540 Modified: doc/trunk/design/syn/S03.pod Log: Major reorganization of S03. Modified: doc/trunk/design/syn/S03.pod == --- doc/trunk/design/syn/S03.pod