Re: error when using - as lambda function

2006-10-03 Thread Audrey Tang
在 Oct 3, 2006 10:22 PM 時,Wim Vanderbauwhede 寫到: say (- $n { - $f { $f($n,$f) }.( - $n, $f { $n2 ?? 1 !! $n*$f ($n-1,$f) }) }).(5); say OK; #say (- $n { - $f { $f($n,$f) }.( - $n, $f { $n2 ?? 1 !! $n*$f ($n-1,$f) }) }).(5); say OK; It's extremely subtle -- $n2 should never have parsed in

Re: trying to use a role within a role

2006-10-02 Thread Audrey Tang
在 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;

Re: trying to use a role within a role

2006-10-02 Thread Audrey Tang
在 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

Re: Trying to use Perl5 modules

2006-09-13 Thread Audrey Tang
在 Sep 11, 2006 2:07 PM 時,Trey Harris 寫到: In a message dated Mon, 11 Sep 2006, Richard Hainsworth writes: I am trying to find out how to use (in perl6) perl5 modules that contain subroutines. Imports from Perl 5 modules don't currently work. Actually, explicit imports do work (as of a

Re: IO::Socket, or any IO

2006-09-09 Thread Audrey Tang
在 Sep 8, 2006 10:33 PM 時,Michael Snoyman 寫到: Thanks Audrey. I actually found that after writing that post. What I had wanted to do was write a threaded server, implemented in Perl 6 only (ie, including Perl 6 regexs). I got that working almost entirely, when I couldn't find any thread

Re: IO::Socket, or any IO

2006-09-08 Thread Audrey Tang
在 Aug 25, 2006 12:54 AM 時,Michael Snoyman 寫到: I was thinking of rewriting a little webserver program I wrote in Perl 5 using Pugs. I was wondering what the equivilent (if any) of IO::Socket is. I suppose I could use an external webserver and use CGI to get this working with IO, but my