On Fri, Apr 3, 2009 at 10:52 PM, Moritz Lenz wrote:
> Xiao Yafeng wrote:
> > 1. Could I set multi-return type?like
> > sub test as (Int, Str) {...}
>
> "as" is coercion - so to what would it coerce? Int or Str? How could the
> compiler know? Or do you mean something like
Am I right that multi-dimensional arrays do not yet work fully in Rakudo?
On Sat, 4 Apr 2009, Xiao Yafeng wrote:
3. Could I define primary key for a bag variable?
All items in a Bag are "primary keys", but there's no data additional
data associated with it.
I mean whether I can see Set as a table and Bag as a table with a
unique constraint? like:
subse
Author: masak
Date: 2009-04-04 11:32:02 +0200 (Sat, 04 Apr 2009)
New Revision: 26069
Modified:
docs/Perl6/Spec/S09-data.pod
Log:
[S09] added table of operations that autovivify
Modified: docs/Perl6/Spec/S09-data.pod
===
--- docs/P
Peter (>):
> Am I right that multi-dimensional arrays do not yet work fully in Rakudo?
Yes, you are.
That is to say, you can't do this yet:
my @a[4;2]; # Valid indices are 0..3 ; 0..1
There's nothing stopping you from creating an array of arrays, though.
// Carl
Author: masak
Date: 2009-04-04 14:57:29 +0200 (Sat, 04 Apr 2009)
New Revision: 26081
Modified:
docs/Perl6/Spec/S09-data.pod
Log:
[S09] removed .<> from the table
It's just sugar anyway. pmurias++ for pointing that out.
Modified: docs/Perl6/Spec/S09-data.pod
===
Author: s1n
Date: 2009-04-04 20:45:14 +0200 (Sat, 04 Apr 2009)
New Revision: 26090
Modified:
docs/Perl6/Spec/S16-io.pod
Log:
[spec] minor touch-ups to better format the pod for perl5's perldoc tool.
Modified: docs/Perl6/Spec/S16-io.pod
=
Timothy S. Nelson wrote:
On Sat, 4 Apr 2009, Xiao Yafeng wrote:
I mean whether I can see Set as a table and Bag as a table with a
unique constraint? like:
I think you have that backwards. A Set is conceptually like a Bag with a
uniqueness constraint, not the other way around.
s