Am Montag, den 19.10.2009, 16:43 -0700 schrieb Jon Lang:
> Raphael Descamps wrote:
> > I personally don't understand why we don't have a exclude and alias
> > operator in Perl 6 but I have not read all the synopses and don't have
> > an overview.
>
> I don't think that it's explicitly spelled out
On Mon, Oct 19, 2009 at 11:47 PM, Jon Lang wrote:
> Because a method is part of a role, and ought to abide by the same
> terms by which the role abides. If Logging doesn't do Numeric, it
> shouldn't have any methods in it that won't work unless it does.
100% agreed.
So what the OP wants to do i
On Tue, Oct 20, 2009 at 2:32 PM, Mark J. Reed wrote:
> On Mon, Oct 19, 2009 at 11:47 PM, Jon Lang wrote:
>> Because a method is part of a role, and ought to abide by the same
>> terms by which the role abides. If Logging doesn't do Numeric, it
>> shouldn't have any methods in it that won't work
I recently attempted to write a sample mutable role that made use of a
number of lvalue methods, and I had a bear of a time getting it to
work. Could we arrange for a more intuitive option to be available?
For example, allow the programmer to pass a writer code block in
through the rw trait, and a
# New Ticket Created by Nathan Brown
# Please include the string: [perl #69899]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=69899 >
For make test or make spectest, every test the result is:
Dubious, tests returned 1 (wst
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #69915]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=69915 >
rakudo: sub f1 ($a, $b) { WHAT($a) ~ WHAT($b) }; say f1(a => 42, 23)
rakudo 1ab069: OU
# New Ticket Created by Matthew Walton
# Please include the string: [perl #69893]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=69893 >
15:22 <@mathw> rakudo: role woowoo {}; multi trait_mod:(Routine $c, woowoo)
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #69919]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=69919 >
rakudo: role A { my $foo = "OH HAI"; method bar() { say $foo }
}; class B does A {}; B.
On 2009-Oct-20, at 7:55 am, Matthew Walton wrote:
On Tue, Oct 20, 2009 at 2:32 PM, Mark J. Reed
wrote:
On Mon, Oct 19, 2009 at 11:47 PM, Jon Lang
wrote:
Because a method is part of a role, and ought to abide by the same
terms by which the role abides. If Logging doesn't do Numeric, it
shou
# New Ticket Created by chris
# Please include the string: [perl #69887]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=69887 >
I am surprised to constat that Rakudo site is used by plenty of peiples
to post unapropriate m
On 2009-Oct-20, at 8:04 am, Jon Lang wrote:
The above example is of course trivial. A more serious example
might be one based off of a coordinate system:
role point {
has Num $x, Num $y;
method angle() is rw( { $.x = .r * cos($_); $.y = .r *
sin($_) } ) { return atn($.y/$.x
HaloO,
On Tuesday, 20. October 2009 18:35:36 David Green wrote:
> >> So what the OP wants to do is declare a method that is available on
> >> all those invocants - and only those invocatnts - which do all of
> >> roles X, Y, and Z. Granted, you can declare a new role XandYandZ
> >> that does X, Y
This is an automatically generated mail to inform you that tests are now
available in t/spec/S05-grammar/methods.t
commit 1304265c541f9a396febab7315706dff5cef6af6
Author: moritz
Date: Tue Oct 20 20:45:18 2009 +
[t/spec] tests for RT #69228, calling methods from a grammar
git-
This is an automatically generated mail to inform you that tests are now
available in t/spec/S12-construction/BUILD.t
commit 019a2b38ac7a6ba8bb99d06e6b0843d3aa3eff0d
Author: moritz
Date: Tue Oct 20 21:06:48 2009 +
[t/spec] test for RT #66120, a method BUILD should warn
git-sv
Author: masak
Date: 2009-10-21 00:03:48 +0200 (Wed, 21 Oct 2009)
New Revision: 28864
Modified:
docs/Perl6/Spec/S06-routines.pod
Log:
[S06] same-named non-anon positionals are a compile error
Modified: docs/Perl6/Spec/S06-routines.pod
Author: moritz
Date: 2009-10-21 00:15:32 +0200 (Wed, 21 Oct 2009)
New Revision: 28865
Modified:
docs/Perl6/Spec/S06-routines.pod
Log:
[S06] extend uniq name constraint to named parameters too
Modified: docs/Perl6/Spec/S06-routines.pod
===
On Tue, Oct 20, 2009 at 5:35 PM, David Green wrote:
> I would expect "$foo where {$_ ~~ X}" and "X $foo" simply to be different
> ways of writing the same thing, but whatever works!
Yes, but the where clause lets you test against multiple types at
once. They don't participate in multiple dispatch
17 matches
Mail list logo