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. :)
Bu
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= 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 values padd
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
:
: %hash = ('some value') x 2;
:
: in Perl 6, but you always need to take care to write the correct integer
: in the list replication.
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
==
2009/6/8 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'
By autothreading, this would be equivalent to:
(%hash{'foo'} & %hash{'bar'}) = 'some value';
wh
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= 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 t
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 simulta
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
=
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
==
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
===
10 matches
Mail list logo