Re: [svn:parrot] r35869 - trunk/languages/perl6/src/classes

2009-01-22 Thread Jonathan Worthington
Will Coleda wrote: On Thu, Jan 22, 2009 at 11:45 AM, Patrick R. Michaud wrote: On Wed, Jan 21, 2009 at 09:00:23AM -0800, c...@cvs.perl.org wrote: Author: coke Date: Wed Jan 21 09:00:22 2009 New Revision: 35869 Modified: trunk/languages/perl6/src/classes/Range.pir Log: Add a basic

Re: design of the Prelude (was Re: Rakudo leaving the Parrot nest)

2009-01-22 Thread Darren Duncan
Dave Whipp wrote: Darren Duncan wrote: Dave Whipp wrote: sub sqrt(Num where { 0 <= $_ <= Real::Max } $x) { (0..$x/2 :by(Real::Epsilon)).min: { abs $x - $^candidate ** 2 } } So do you really mean "as declarative a manner as possible"? Or would you consider this example to go beyond "possib

[PATCH] Updated Test.pm

2009-01-22 Thread Ovid
The attached patch updates languages/perl6/Test.pm. I realize that with the new testing discussion, this may be useless in the long run, but if anyone is hacking on Rakudo now, they might find it useful. Features: 1. 'no_plan' is now supported: plan *; 2. Diagnostics: is 2,3; #

[perl #62612] [BUG] parrot revision 35872 broke pick

2009-01-22 Thread Will Coleda via RT
On Thu Jan 22 06:58:15 2009, coke wrote: > This is my fault; > > I added a simplistic Range.pick without running the spectest. > > The original functionality defaulted to flattening the range into a > list, which made (1..1000).pick.say rather slow. > > I added Range.pick() (no args), but m

[perl #62628] Math subsets and Class hierarchy

2009-01-22 Thread via RT
# New Ticket Created by Daniel Ruoso # Please include the string: [perl #62628] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62628 > I'd expect the following: ok(1 ~~ Int, '1 is an Int); ok(1 ~~ Rat, 'the rational number

Re: [svn:parrot] r35869 - trunk/languages/perl6/src/classes

2009-01-22 Thread Will Coleda
On Thu, Jan 22, 2009 at 11:45 AM, Patrick R. Michaud wrote: > On Wed, Jan 21, 2009 at 09:00:23AM -0800, c...@cvs.perl.org wrote: >> Author: coke >> Date: Wed Jan 21 09:00:22 2009 >> New Revision: 35869 >> >> Modified: >>trunk/languages/perl6/src/classes/Range.pir >> >> Log: >> Add a basic vers

Re: [svn:parrot] r35869 - trunk/languages/perl6/src/classes

2009-01-22 Thread Patrick R. Michaud
On Wed, Jan 21, 2009 at 09:00:23AM -0800, c...@cvs.perl.org wrote: > Author: coke > Date: Wed Jan 21 09:00:22 2009 > New Revision: 35869 > > Modified: >trunk/languages/perl6/src/classes/Range.pir > > Log: > Add a basic version of .pick() for Range and hopefully not break anything. The versio

Re: design of the Prelude (was Re: Rakudo leaving the Parrot nest)

2009-01-22 Thread Dave Whipp
Darren Duncan wrote: Dave Whipp wrote: sub sqrt(Num where { 0 <= $_ <= Real::Max } $x) { (0..$x/2 :by(Real::Epsilon)).min: { abs $x - $^candidate ** 2 } } So do you really mean "as declarative a manner as possible"? Or would you consider this example to go beyond "possible"? I would decl

[perl #62622] + doesn't DWIM enough in Rakudo

2009-01-22 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #62622] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62622 > masak: can you submit the 'my Int $x = +"2"' bug please? * masak submits rakudo: my In

[perl #62612] [BUG] parrot revision 35872 broke pick

2009-01-22 Thread Ifejinelo Onyiah
# New Ticket Created by "Ifejinelo Onyiah" # Please include the string: [perl #62612] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62612 > I have just updated my parrot & rakudo installation. I ran the spectests: make te

Test.pm and skip()

2009-01-22 Thread Ovid
The skip multisub in Rakudo's Test.pm is defined like this: multi sub skip() is export() { proclaim(1, "# SKIP"); } multi sub skip($desc) is export() { proclaim(1, "# SKIP " ~ $desc); } multi sub skip($count, $desc) is export() { for 1..$count { proclaim(

[perl #62260] [BUG] END blocks don't see external variables

2009-01-22 Thread jn...@jnthn.net via RT
On Tue Jan 13 08:58:08 2009, pmichaud wrote: > On Tue, Jan 13, 2009 at 05:17:16PM +0100, Jonathan Worthington wrote: > > Patrick R. Michaud wrote: > >> Confirmed -- there are still issues with lexicals in a > >> variety of control blocks. > >> > >> > > I skimmed the code for that today. I notice

[perl #60924] Grammars in classes causes Rakudo to crash

2009-01-22 Thread jn...@jnthn.net via RT
On Sat Nov 29 17:03:22 2008, masak wrote: > Rakudo r33329 can't instantiate classes that contain a grammar. > > $ perl6 -e 'class A { grammar B {} }; A.new' > Null PMC access in get_string() > [...] Fixed in r35884, and tests added in Pugs r25000 (plus to make sure you can invoke rules in the nes

[perl #61350] Method declarations and nested classes don't collaborate well

2009-01-22 Thread jn...@jnthn.net via RT
On Sun Dec 14 02:13:42 2008, masak wrote: > In Rakudo r33860, the following happens when you try to put a method > in an outer class after having defined an inner class: > > $ perl6 -e 'class A { class B {}; method x { say self.WHAT } }; A.new.x' > Null PMC access in get_string() > [...] > > $ pe

[perl #61574] Rakudo doesn't treat inner classes as being contained in the namespace of outer ones

2009-01-22 Thread jn...@jnthn.net via RT
On Sun Dec 21 07:55:53 2008, masak wrote: > rakudo 34202: OUTPUT[Failure␤] > rakudo: class Outer { class Inner {} }; say Inner.WHAT > rakudo 34202: OUTPUT[Inner␤] > * masak submits rakudobug Fixed in r35884, and tests added in Pugs r24999. Thanks, Jonathan