Re: [ANN] SF parrot win32

2007-12-10 Thread Xiao Yafeng
Cool! But if it could include doc would be better. On Dec 5, 2007 11:38 PM, François Perrad <[EMAIL PROTECTED]> wrote: > > I have no personal web site, so I create the project parrotwin32 on > sourceforge : http://parrotwin32.sourceforge.net/ > > This project supplies only binaries for Windows (s

Re: Parrot 0.7.0 "Severe Macaw" - permissions

2008-08-21 Thread Xiao Yafeng
On Thu, Aug 21, 2008 at 4:07 PM, Reini Urban <[EMAIL PROTECTED]> wrote: > the CPAN mirror network and the popularity is what parrot should look > forward to, IMHO > > --

new method question

2008-08-22 Thread Xiao Yafeng
There are no barewords in Perl 6, but it seems new method is an exception: class Dog { has $name; method bark () { say $name; } } my $p = Dog.new($name => 'boo'); $p.bark;#error! my $p = Dog.new( name => 'boo');

Re: how much detail can I get from caller.want?

2008-08-31 Thread Xiao Yafeng
On Sat, Aug 30, 2008 at 4:22 AM, Dave Whipp <[EMAIL PROTECTED]> wrote: > Lets say I want to find the 5th smallest element in an array. I might > write: > > @array.sort.[4]; > > How does the implementation of the sort function know that I just want to > 5th item (and thus choose an appropriate opt

operator vs function

2008-10-30 Thread Xiao Yafeng
Off the top of one's head, since there is no particular difference between an operator and a function, can I see a function as a operator: (1, 2, 3, 4) >>elems<<(2, 3, 4, 5) #(2, 2, 2, 2) (1, 2, 3, 4) >>shift<<(2, 3, 4, 5) #(2, 3, 4, 5) Moreover, can I see a subroutine as a oper

Re: File test ops as string methods

2008-11-08 Thread Xiao Yafeng
> > I've been thinking about that. One interesting ramification of > the current matching rule is that you could say either of: > >"foo".io ~~ :r :x > > or > >"foo" ~~ :io(:r :x) > > where .io is whatever your "casting" method of choice is for turning > a string into an object with the cor

[perl #61522] build trouble on win32

2008-12-19 Thread Xiao Yafeng
# New Ticket Created by "Xiao Yafeng" # Please include the string: [perl #61522] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61522 > Here is the end of output from nmake: .\parrot.exe -o runtime\p

Re: [perl #61522] build trouble on win32

2008-12-20 Thread Xiao Yafeng
On Sat, Dec 20, 2008 at 6:56 AM, Ronald Blaschke via RT < parrotbug-follo...@parrotcode.org> wrote: > >..\..\parrot.exe > > ..\..\runtime\parrot\library\PGE\Perl6Grammar.pir > > --ouput=PGE\builtins_gen.pir PGE\builtins.pg > > MAKE : fatal error U1077: '..\..\parrot.exe' : return code > >

Re: [perl #52264] Bug: duplicate directory names in SVN

2008-03-31 Thread Xiao Yafeng
I'm glad also! But If I had read this mail before reinstalled SVN client, I would be glader. ;) On Sun, Mar 30, 2008 at 10:12 PM, Andrew Whitworth <[EMAIL PROTECTED]> wrote: > Oh, i'm glad this is a bug in the repository, when it happened to me, > I assumed that my SVN client was broken. Now I d

question on max | min op

2008-04-01 Thread Xiao Yafeng
I've read Synopsis and I wondered why to treat max and min as operator. IMHO, view them as list functions is more reasonable. Like below: @test.max is clearer than @test[0] max @test[1] or [max] @test. Any reply would be really appreciated and will much help me learn perl6. Thanks in advance!

Re: [perl #61522] build trouble on win32

2009-03-26 Thread Xiao Yafeng
.\parrot.exe -o PGE.pbc --output-pbc PGE.pir ..\..\parrot.exe ..\..\runtime\parrot\library\PGE\Perl6Grammar.pir --output=PGE \builtins_gen.pir PGE\builtins.pg mingw32-make[1]: *** [PGE.pbc] Error -1073741819 mingw32-make[1]: Leaving directory `C:/parrot/compilers/pge' mingw32-make: *** [compilers.dummy]

Re: [perl #61522] build trouble on win32

2009-03-26 Thread Xiao Yafeng
I've moved windows 2003 platform to XP. so far, configure Parrot 1.0 is OK. I'll reinstall windows 2003 and reconfigure parrot. On Thu, Mar 26, 2009 at 11:07 AM, James Keenan via RT < parrotbug-follo...@parrotcode.org> wrote: > Could you try reconfiguring with Parrot 1.0? > > Thank you very much.

some questions about S02(type)

2009-04-03 Thread Xiao Yafeng
1. Could I set multi-return type?like sub test as (Int, Str) {...} my (Int, Str) sub test {...} or my (Int|Num, Str) sub test{...} 2. set is unordered collection of values, subset is new type. People are apt to confuse th

Re: some questions about S02(type)

2009-04-04 Thread Xiao Yafeng
On Fri, Apr 3, 2009 at 10:52 PM, Moritz Lenz wrote: > Xiao Yafeng wrote: > > 1. Could I set multi-return type?like > > sub test as (Int, Str) {...} > > "as" is coercion - so to what would it coerce? Int or Str? How could the > compiler k

Re: some questions about S02(type)

2009-04-05 Thread Xiao Yafeng
/4/09, Timothy S. Nelson wrote: > On Sat, 4 Apr 2009, Xiao Yafeng wrote: > >>>> 3. Could I define primary key for a bag variable? >>> >>> All items in a Bag are "primary keys", but there's no data additional >>> data associated with it

Is there a way to bulky feed?

2009-07-09 Thread Xiao Yafeng
My question is: could I write below code in perl6: my @a = <1 2 3 4>; my @b[2]; for @a -> @b {;} # 2 loops like for @a -> $b[0],$b[1]{;} my @a = <1 2 3 4>; my @b; for @a -> @b {;} # 1 loop

Re: Is there a way to bulky feed?

2009-07-10 Thread Xiao Yafeng
On Fri, Jul 10, 2009 at 12:29 AM, yary wrote: > > > On Wed, Jul 8, 2009 at 8:45 PM, Xiao Yafeng wrote: > >> Any thoughts? >> > > First let's fix the whitespace in your post so it's easier to read- > > My question is: could I write below code in

Re: A new era for Temporal

2010-04-10 Thread Xiao Yafeng
Is Int a proper type? I hope I can use basic operation within Date and hours in perl6 like: Date -1/24 + 1/24/60 + Date On Fri, Apr 9, 2010 at 10:00 PM, Moritz Lenz wrote: > Am 09.04.2010 15:33, schrieb Dave Rolsky: > > On Thu, 8 Apr 2010, Carl Mäsak wrote: >> >> I do want to exp

Re: Rakudo Star - a useful, usable, "early adopter" distribution of Perl 6

2010-07-29 Thread Xiao Yafeng
Congratulations! On Thu, Jul 29, 2010 at 8:23 PM, Patrick R. Michaud wrote: > On behalf of the Rakudo and Perl 6 development teams, I'm happy to > announce the July 2010 release of "Rakudo Star", a useful and usable > distribution of Perl 6.  The tarball for the July 2010 release is > available f

what type $in,$out and $err is

2018-10-28 Thread Xiao Yafeng
I'm curious about what type of $in is on Proc class. As described in perl6doc: $in, $out and $err are the three standard streams of the to-be-launched program, and default to "-" meaning they inherit the stream from the parent process. Setting one (or more) of them to True makes the stream availabl

Re: FOSDEM - perl 6 critic

2011-02-24 Thread Xiao Yafeng
Almost one year ago, I posted similar opinion on perlmonks. But now, I realize I made a mistake most of people made, to avoid knowing, learning new things. ;) as a sysadmin since 2000, I definitely need to handle many small tasks also, a script for fetching files, a script for showing figure, a sc

Re: The trouble with awesome

2012-05-28 Thread Xiao Yafeng
On Sat, May 26, 2012 at 6:34 PM, Nicholas Clark wrote: > On Fri, May 25, 2012 at 08:44:30AM -0500, B. Estrade wrote: > > > Realistically, that's not going to happen. The internals of the Perl 5 > interpreter are not flexible enough to implement a lot of the features > that > Perl 6 has that Perl