jn...@jnthn.net via RT wrote:
> On Thu Jun 25 15:43:59 2009, viklund wrote:
>> -- code --
>> class A {
>> method a(*...@a) {
>> say "A self={self.perl} ar...@a.perl}"
>> }
>> }
>>
>> class B is A {
>> method a(*...@a) {
>> nextwith("FIRST ARG", "SECOND ARG")}
>> }
>>
>
On Tue, 7 Jul 2009, Ovid wrote:
role Bomb {
method fuse (){ say '3 .. 2 .. 1 ..' }
method explode () { say 'Rock falls. Everybody dies!' }
}
role Spouse {
method fuse (){ sleep rand(20); say "Now!" }
method explode () { say 'You worthless piece of junk! Why I should ...'
My patchwork readings lead me to believe I could test Perl 6's
tie-like feature with something like the below code, which I don't
expect to even compile, what with '???' in places. My question is:
am I on the right track? Obviously there are details I haven't nailed
down, and any guidance would b
On Thu Jun 25 15:43:59 2009, viklund wrote:
> -- code --
> class A {
> method a(*...@a) {
> say "A self={self.perl} ar...@a.perl}"
> }
> }
>
> class B is A {
> method a(*...@a) {
> nextwith("FIRST ARG", "SECOND ARG")}
> }
>
> B.new.a()
>
> -- output --
>
> A self="FI
Moritz Lenz wrote:
chromatic wrote:
On Monday 06 July 2009 23:55:28 Moritz Lenz wrote:
I think abusing a class as a role is forbidden
I hope it's not!
Well, it surely depends on context. You can "pun" a role into a class by
instantiating it, but the correct way to apply
chromatic wrote:
> On Monday 06 July 2009 23:55:28 Moritz Lenz wrote:
>
>> I think abusing a class as a role is forbidden
>
> I hope it's not!
Well, it surely depends on context. You can "pun" a role into a class by
instantiating it, but the correct way to apply it to another class seems
to be w
On Monday 06 July 2009 23:55:28 Moritz Lenz wrote:
> I think abusing a class as a role is forbidden
I hope it's not!
-- c
Author: skids
Date: 2009-07-07 15:51:58 +0200 (Tue, 07 Jul 2009)
New Revision: 27468
Modified:
docs/Perl6/Spec/S32-setting-library/Numeric.pod
Log:
[S32/Numeric] correct parameter name in atan2 method form
Modified: docs/Perl6/Spec/S32-setting-library/Numeric.pod
# New Ticket Created by Kevan Benson
# Please include the string: [perl #67270]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=67270 >
Forgot to also fix .unshift in previous patch...
--
-Kevan Benson
-A-1 Networks
>Fro
Brandon S. Allbery KF8NH wrote:
On Jul 7, 2009, at 08:13 , Jonathan Worthington wrote:
Brandon S. Allbery KF8NH wrote:
I was trying to figure out how to do it with nextsame, but that's
not looking very simple.
On the other hand, if they were multis then they get added to the
multi candidate
On Jul 7, 2009, at 08:13 , Jonathan Worthington wrote:
Brandon S. Allbery KF8NH wrote:
I was trying to figure out how to do it with nextsame, but that's
not looking very simple.
On the other hand, if they were multis then they get added to the
multi candidate list and therefore you can next
Brandon S. Allbery KF8NH wrote:
On Jul 7, 2009, at 07:34 , Jonathan Worthington wrote:
Jon Lang wrote:
I believe that the official word is to say:
class PracticalJoke does Bomb does Spouse {
method fuse () { Bomb::fuse }
method explode () { Spouse::explode }
}
This way won't work, be
On Jul 7, 2009, at 07:34 , Jonathan Worthington wrote:
Jon Lang wrote:
I believe that the official word is to say:
class PracticalJoke does Bomb does Spouse {
method fuse () { Bomb::fuse }
method explode () { Spouse::explode }
}
This way won't work, because:
* It's doing a sub call t
Jon Lang wrote:
I believe that the official word is to say:
class PracticalJoke does Bomb does Spouse {
method fuse () { Bomb::fuse }
method explode () { Spouse::explode }
}
This way won't work, because:
* It's doing a sub call to something that's a method
* The lookup won't wor
# New Ticket Created by Kevan Benson
# Please include the string: [perl #67272]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=67272 >
Sorry to be spammy, forgot to add useful subject to previous two patch
emails. As suc
# New Ticket Created by Kevan Benson
# Please include the string: [perl #67268]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=67268 >
--
-Kevan Benson
-A-1 Networks
>From e74a445184e0d503e80a59e2d99732596a0a284e Mon S
# New Ticket Created by Moritz Lenz
# Please include the string: [perl #67278]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=67278 >
08:53 <@moritz_> rakudo: class A { }; class B does A { }; say "alive"
08:53 < p6eval> rak
Ovid wrote:
Giving a talk about roles at YAPC::EU in Lisbon
Hey, me too! :-)
and I'm a bit stuck on how to translate a Perl 5 example into Perl 6. Basically, Imagine
a "PracticalJoke" class which has fuse() and explode methods(). It needs the
timed fuse() from a Bomb role and a non-lethal
On Tue, Jul 7, 2009 at 2:48 AM,
Ovid wrote:
>
> Giving a talk about roles at YAPC::EU in Lisbon and I'm a bit stuck on how to
> translate a Perl 5 example into Perl 6. Basically, Imagine a "PracticalJoke"
> class which has fuse() and explode methods(). It needs the timed fuse() from
> a Bomb r
Giving a talk about roles at YAPC::EU in Lisbon and I'm a bit stuck on how to
translate a Perl 5 example into Perl 6. Basically, Imagine a "PracticalJoke"
class which has fuse() and explode methods(). It needs the timed fuse() from a
Bomb role and a non-lethal explode() from a Spouse role, th
20 matches
Mail list logo