在 Sep 30, 2006 6:26 PM 時,Richard Hainsworth 寫到:
role win_text {
has $.win_mytxt1 is rw;
has $.win_mytxt2 is rw;
};
role mywindow {
has $.border is rw;
has $.colour is rw;
does win_text;
};
my $w = new mywindow;
$w.border = 2;
$w.colour = 'red';
say $w.border;
say $w.colour;
在 Oct 2, 2006 5:56 PM 時,Audrey Tang 寫到:
At this moment only role mywindow does win_text works; the
statement-level does form was not implemented, but I should be
able to do so in the next few days.
Update: It's now implemented as r13782.
Richard: The t/README file should get you started at