On Sun, 20 Jun 2010, Xi Yang wrote:
You might mis-understood method modifiers. I mean:
before x()
after x()
around x()
.
Just a note that I've usually seen this called "Aspect-Oriented
Programming".
2: Does Perl 6 has build-in support for message passing (like those in Glib and
Acti
Xi Yang wrote:
> You might mis-understood method modifiers. I mean:
> before x()
> after x()
> around x()
>
In Perl 6, you do that with wrapping:
http://perlcabal.org/syn/S06.html#Wrapping
Cheers,
Moritz
Hi,
Xi Yang wrote:
> 1: Does Perl 6 has method modifiers like those in Moose?
Perl 6 has traits, so you can write for example
class A {
method x() is rw { ...}
}
to indicate that it's an lvalue routine (though I don't think it's
implemented in Rakudo yet).
> Where can I get the doc about t
t.
2: It seems that wrapping will affect the closure globally, but I only want
class with specific role has specific modification.
> Date: Sun, 20 Jun 2010 13:53:59 +0200
> From: mor...@faui2k3.org
> To: jianding...@msn.com
> CC: perl6-us...@perl.org
> Subject: Re: Two questions on P
Very subtle implementation, I'm trying to understand those things. Thanks!
> Date: Sun, 20 Jun 2010 13:53:59 +0200
> From: mor...@faui2k3.org
> To: jianding...@msn.com
> CC: perl6-us...@perl.org
> Subject: Re: Two questions on Perl 6 functionality
>
>
>
>
You might mis-understood method modifiers. I mean:
before x()
after x()
around x()
> Date: Sun, 20 Jun 2010 12:17:46 +0200
> From: mor...@faui2k3.org
> To: jianding...@msn.com
> CC: perl6-us...@perl.org
> Subject: Re: Two questions on Perl 6 functionality
>
> Hi,
>
1: Does Perl 6 has method modifiers like those in Moose? Where can I get the
doc about that? By reading apocalypse?
2: Does Perl 6 has build-in support for message passing (like those in Glib and
Actionscript)?
_