r27033 - docs/Perl6/Spec

2009-06-08 Thread pugs-commits
Author: pmichaud Date: 2009-06-08 17:20:31 +0200 (Mon, 08 Jun 2009) New Revision: 27033 Modified: docs/Perl6/Spec/S11-modules.pod Log: Remove line about module Foo; needing to be first in file. Modified: docs/Perl6/Spec/S11-modules.pod

r27034 - docs/Perl6/Spec

2009-06-08 Thread pugs-commits
Author: lwall Date: 2009-06-08 17:27:48 +0200 (Mon, 08 Jun 2009) New Revision: 27034 Modified: docs/Perl6/Spec/S03-operators.pod Log: [S03] reduce prececedence of adverbs from inside comma to inside item_assignment Modified: docs/Perl6/Spec/S03-operators.pod

r27035 - docs/Perl6/Spec

2009-06-08 Thread pugs-commits
Author: lwall Date: 2009-06-08 17:38:07 +0200 (Mon, 08 Jun 2009) New Revision: 27035 Modified: docs/Perl6/Spec/S03-operators.pod Log: [S03] slight clarifications to previous adverbial changes Modified: docs/Perl6/Spec/S03-operators.pod

Assigning duplicate values to several hash keys using junctions?

2009-06-08 Thread Ville Koskinen
Hello all, I was curious if this is possible in Perl 6: %hash{ 'foo' 'bar' } = 'some value'; # %hash{'foo'} eq 'some value' and %hash{'bar'} eq 'some value' or perhaps %hash{ 'foo' | 'bar' } = 'some value'; In other words, is it possible to assign the same value to multiple hash keys

say followed by lines - inconsistencies

2009-06-08 Thread Richard Hainsworth
I came upon the following, which seems to be in line with spec, but I think is inconsistent. I write a hash to a file delimited by tabs, eg my $fn=open('data.csv',:w); my %x=one two three four Z 1,2,2.1,3; $fn.say('record-name'~map(\t$^a\t$^b),%x); $fn.close; The output sometimes contains

Re: Assigning duplicate values to several hash keys using junctions?

2009-06-08 Thread Jon Lang
2009/6/8 Ville Koskinen vrk...@iki.fi: Hello all, I was curious if this is possible in Perl 6: %hash{ 'foo' 'bar' } = 'some value'; # %hash{'foo'} eq 'some value' and %hash{'bar'} eq 'some value' By autothreading, this would be equivalent to: (%hash{'foo'} %hash{'bar'}) = 'some

r27037 - docs/Perl6/Spec

2009-06-08 Thread pugs-commits
Author: jnthn Date: 2009-06-08 22:56:30 +0200 (Mon, 08 Jun 2009) New Revision: 27037 Modified: docs/Perl6/Spec/S12-objects.pod Log: [spec] Rename :hierarchical option to :tree in the spec for some meta-class method, as suggested on p6l. Modified: docs/Perl6/Spec/S12-objects.pod

Re: Assigning duplicate values to several hash keys using junctions?

2009-06-08 Thread Larry Wall
On Mon, Jun 08, 2009 at 12:02:43PM +0100, Ville Koskinen wrote: : An alternative is always : : @hash{qw(foo bar)} = ('some value') x 2; : : which is probably : : %hashfoo bar = ('some value') x 2; : : in Perl 6, but you always need to take care to write the correct integer : in the list

Re: say followed by lines - inconsistencies

2009-06-08 Thread Larry Wall
On Tue, Jun 09, 2009 at 12:37:10AM +0400, Richard Hainsworth wrote: I write a hash to a file delimited by tabs, eg my $fn=open('data.csv',:w); my %x=one two three four Z 1,2,2.1,3; $fn.say('record-name'~map(\t$^a\t$^b),%x); $fn.close; The output sometimes contains either the keys or the

LValues, types, mutability

2009-06-08 Thread John M. Dlugosz
TSa Thomas.Sandlass-at-vts-systems.de |Perl 6| wrote: I like your idea to call the class that handles container access LValue. I have proposed the name AssignmentProxy elsewhere. Thanks. I'll quote that so it gets more exposure and hopefully will build a consensus or other feedback. :)