Re: 99 problems in Perl6: 32 and a question on number coercion

2007-01-03 Thread Steffen Schwigon
gabriele renzi <[EMAIL PROTECTED]> writes: > Steffen Schwigon ha scritto: >> I looked at [1]. What's the purpose of "multi" in this case? >> (Maybe you wanted to write it as more than one subs, did you?) > > look the comment: > > # Yet, it should be possible to define it even for commutative rings

Re: 99 problems in Perl6: 32 and a question on number coercion

2007-01-03 Thread gabriele renzi
Steffen Schwigon ha scritto: Hi! gabriele renzi <[EMAIL PROTECTED]> writes: Hi everyone! I solved the (easy) problem 32, implementing gcd($a,$b). You can check the code in the repository or on the web[1] I looked at [1]. What's the purpose of "multi" in this case? (Maybe you wanted to write

Re: 99 problems in Perl6: 32 and a question on number coercion

2007-01-03 Thread Steffen Schwigon
Hi! gabriele renzi <[EMAIL PROTECTED]> writes: > Hi everyone! > > I solved the (easy) problem 32, implementing gcd($a,$b). > You can check the code in the repository or on the web[1] I looked at [1]. What's the purpose of "multi" in this case? (Maybe you wanted to write it as more than one subs,

99 problems in Perl6: 32 and a question on number coercion

2007-01-02 Thread gabriele renzi
Hi everyone! I solved the (easy) problem 32, implementing gcd($a,$b). You can check the code in the repository or on the web[1] But while writing this I noticed that a function written as sub gcd(Int $a, Int $b) still accepts float/rational values in input. I think I read once that a variable

Re: 99 problems in Perl6: problem 28

2007-01-02 Thread Gaal Yahas
On Tue, Jan 02, 2007 at 12:25:29PM +0100, gabriele renzi wrote: > >Assuming the tests pass (I can't check this at work) and you have > > a commit bit, check it in! > > they pass here, but I have no commit bit, it's ok if I do a darcs push? > (I prefer it over svn) You have one now :) (The darcs

Re: 99 problems in Perl6: problem 28

2007-01-02 Thread Ovid
--- gabriele renzi <[EMAIL PROTECTED]> wrote: > > Assuming the tests > > pass (I can't check this at work) and you have a commit bit, check > it > > in! > > they pass here, but I have no commit bit, it's ok if I do a darcs > push? > (I prefer it over svn) That's not my place to say. I can't giv

Re: 99 problems in Perl6: problem 28

2007-01-02 Thread gabriele renzi
Ovid ha scritto: Ah, nice to see someone else tackling the problems. yes, it was such a nice idea :) Assuming the tests pass (I can't check this at work) and you have a commit bit, check it in! they pass here, but I have no commit bit, it's ok if I do a darcs push? (I prefer it over svn)

Re: 99 problems in Perl6: problem 28

2007-01-02 Thread Ovid
Ah, nice to see someone else tackling the problems. Assuming the tests pass (I can't check this at work) and you have a commit bit, check it in! Cheers, Ovid --- gabriele renzi <[EMAIL PROTECTED]> wrote: > Hi everyone, and happy new year! > > I'm an almost complete newbie to Perl6 and I'm not t

99 problems in Perl6: problem 28

2007-01-02 Thread gabriele renzi
Hi everyone, and happy new year! I'm an almost complete newbie to Perl6 and I'm not that good at Perl5 either, but I thought playing with these problems could be fun, so I tried to solve #28. My solution is attached, it seems to work, but I'd like to know from people more expert than me if t

99 Problems in Perl6

2006-12-15 Thread Ovid
Hi all, Want to learn Perl6 but you don't know what to write? I recently stumbled across 99 Lisp Problems (which was originally 99 Prolog Problems). It looked like fun, so I started answering those problems in Perl 6. This has shown me that I don't know Perl 6 nearly as well as I would like. T