[perl #65238] eval in a method doesn't use the namespace of the class in Rakudo

2009-05-01 Thread jn...@jnthn.net via RT
On Wed Apr 29 01:31:53 2009, masak wrote: > rakudo: class A { sub bar() { return 42 }; method foo() { say > bar; say eval("bar") } }; A.new.foo > rakudo 654500: OUTPUT«42␤␤» Now as of git 3262dd7 prints 42 twice; unfudged the test from moritz++ in t/spec/integration/packages.t also. Thanks, Jo

[perl #65260] [BUG] .perl on protoobject should not have parens

2009-05-01 Thread jn...@jnthn.net via RT
On Wed Apr 29 14:39:49 2009, pmichaud wrote: > 21:31 rakudo: "string".WHAT.perl.say > 21:31 rakudo 39e45d: OUTPUT«Str()␤» > 21:31 .perl of a protoobject probably *shouldn't* have the > () > 21:32 unless we guarantee that .() on a protoobject returns > the protoobject itself > 21:32 I agree, sh

[perl #57450] Enum elements don't have a .perl method in rakudo

2009-05-01 Thread jn...@jnthn.net via RT
On Wed Jul 30 22:53:30 2008, masak wrote: > $ svn info | grep vi > Revision: 29902 > > $ ./perl6 -e 'enum Weekday; say Monday' # works > 0 > $ ./perl6 -e 'enum Weekday; say Monday.perl' # doesn't > Method 'perl' not found for invocant of class '' > [...] > > I'm not entirely clear on what I expe

[perl #61030] [TODO] Enum::Value.name

2009-05-01 Thread jn...@jnthn.net via RT
On Sun Mar 29 12:41:04 2009, moritz wrote: > On Wed Dec 03 13:52:09 2008, masak wrote: > > * Given the enum value Foo::baz, how do I get the string 'baz'? > > With Foo::baz.name (which rakudo doesn't implement yet). > It does now (git 7f5af50) plus tests are unfudged in S12-enums/basic.t. Thanks

[perl #63878] Null PMC access when stringifying enum types and values in Rakudo

2009-05-01 Thread jn...@jnthn.net via RT
On Sat Mar 14 15:49:22 2009, masak wrote: > rakudo: enum A <>; my A $a; say $a ne "" > rakudo 5b1ff9: OUTPUT«Null PMC access in get_string() [...] > there it is. > * masak submits rakudobug Fixed and test added to S12-enums/thorough.t. Thanks, Jonathan

[perl #61122] [TODO] Implement .pick on user-defined enums

2009-05-01 Thread jn...@jnthn.net via RT
On Sun Dec 07 04:38:59 2008, masak wrote: > The following should return the months in random order: > > $ perl6 -e 'enum Month Dec>; say Month.pick(12).perl' Implemented as of git 7f5af50. Assigning to moritz++ for spectests. Thanks, Jonathan

[perl #57444] [TODO] add :trig export tag for trigonometric functions

2009-05-01 Thread jn...@jnthn.net via RT
On Thu Nov 13 14:03:20 2008, mor...@casella.verplant.org wrote: > Patrick R. Michaud via RT wrote: > > Can this ticket be closed? > > I'd say we stall it until the :trig tag export works for the > trigonometric functions. > I've seen that we have :Trig working now in p6eval; do we have tests cove

[perl #62342] enums not fully compliant with S12

2009-05-01 Thread jn...@jnthn.net via RT
On Wed Jan 14 03:41:13 2009, richardh wrote: > After playing with enums, I got the following: > > perl6 > > enum day <<:Sun(1) Mon Tue Wed Thr Fri Sat>>; my $x does day; > $x.pick; say $x > Use of uninitialized value .pick is implemented on enums now. Your example works, but note you probably me

[perl #63250] Rakudo dies on range of enum values

2009-05-01 Thread jn...@jnthn.net via RT
On Mon Feb 16 02:17:11 2009, masak wrote: > It's Rakudo c4f0f9, and the following error occurs: > > $ perl6 -e 'enum A ; b..c' > Multiple Dispatch: No suitable candidate found for 'cmp', with > signature 'PP->I' > [...] > > Though I haven't confirmed with the synopses, I'd expect a range of > enu

[perl #57444] [TODO] add :trig export tag for trigonometric functions

2009-05-01 Thread jn...@jnthn.net via RT
On Fri May 01 10:38:19 2009, jn...@jnthn.net wrote: > On Thu Nov 13 14:03:20 2008, mor...@casella.verplant.org wrote: > > Patrick R. Michaud via RT wrote: > > > Can this ticket be closed? > > > > I'd say we stall it until the :trig tag export works for the > > trigonometric functions. > > > I've

[perl #63880] Enums and Whatever stars don't play nice together in Rakudo

2009-05-01 Thread jn...@jnthn.net via RT
On Sat Mar 14 16:05:51 2009, masak wrote: > masak: bug-bug! :) > rakudo: say 1 < * > rakudo 5b1ff9: OUTPUT«Use of uninitialized value␤0␤» > rakudo: enum A ; say a < * > rakudo 5b1ff9: OUTPUT«too few arguments passed (0) - 1 params > expected [...] > * masak submits With latest Rakudo: 20:21

[perl #64046] [BUG] an enum does not smartmatch in given ... { when ... { ... } }

2009-05-01 Thread jn...@jnthn.net via RT
On Sat Mar 21 02:42:29 2009, autoe...@xs4all.nl wrote: > Unsure whether the following should work, but it doesn't: > > perl6 -e 'enum E ; my E $x=E::bar; given $x { when E::foo {say > "FOO"} when E::bar {say "BAR"}};' > Method 'ACCEPTS' not found for invocant of class '' > > The problem seems to

[perl #63690] Enums with parenthesis

2009-05-01 Thread jn...@jnthn.net via RT
On Sat Mar 07 11:20:29 2009, moritz wrote: > Rakudo is too strict while parsing enum expressions: > > 20:18 <@moritz_> rakudo: say enum Foo ('foo', 'bar') > 20:19 < p6eval> rakudo f6cdf9: OUTPUT«Statement not terminated properly > at line > 1, near "('foo', 'b"␤␤current instr.: > '

[perl #64100] Can't use enums as roles

2009-05-01 Thread jn...@jnthn.net via RT
On Sun Mar 22 11:50:02 2009, moritz wrote: > S12 says: > `'Note that C and C are really role names'' > (and I guess that holds true for all enums). Rakudo disagrees: > Enums generally now work now as roles, though note that Bool in Rakudo is currently not a role. Looking at S12-enums/as-role.t

[perl #64602] [BUG] invalid 'but' produces endless loop

2009-05-01 Thread jn...@jnthn.net via RT
On Thu Apr 09 07:21:23 2009, m...@suse.de wrote: > > $ perl6 -e '0 but True' > [hangs] > > perl6 -t 1 shows that it does a 'die "The but operator can..."', > but it never dies. > The hang is now fixed. Thanks, Jonathan

[perl #58948] [BUG] multi subs compile but cause segfault

2009-05-01 Thread jn...@jnthn.net via RT
On Wed Sep 17 08:35:08 2008, pmichaud wrote: > Actually, I suspect the problem may be that 'max' is already a > builtin function in Perl, and that the conflict comes because > the builtins (written in PIR) are still using Parrot's MultiSub > while the ones written in Perl 6 are using the new Perl6M

[perl #63094] Possible Bug (Windows Only)

2009-05-01 Thread jn...@jnthn.net via RT
On Sat Apr 25 06:02:16 2009, ronaldxs wrote: > I retested the example with a current Bratislava rakudo built with > ActivePerl/Mingw gcc under Windows Vista and it ran fine. Could the > author update their Perl 6 to a current rakudo and retest? If the > persistence of the problem can't be conf

[perl #62742] man, max should accept code block that defines ordering

2009-05-01 Thread jn...@jnthn.net via RT
On Sun Jan 25 09:09:51 2009, dave.wh...@gmail.com wrote: > According to S29, the "min" and "max" methods should accept the same > ordering args as "sort": > > say "{(1..10).sort: { ($_-3) * ($_-5) }}"; > >>> 4 3 5 2 6 1 7 8 9 10 > > say (1..10).min: { ($_-3) * ($_-5) }; > >>> 4 > > The former wo

[perl #58524] =<> doesn't read from $*IN in Rakudo

2009-05-01 Thread Ron Schmidt via RT
> Shouldn't that be just =$*IN ? Times have changed and not anymore. $ ./perl6 -e 'say =$*IN' prefix:<=> has been superseeded by $handle.lines and $handle.get $*IN.lines seems to work and yes I am hoping someone will fix the spelling of superseded in src/classes/IO.pir. > > > $ ./perl6 -e 'sa

[perl #61662] implicit binding of matches to $_

2009-05-01 Thread Ron Schmidt via RT
Added tests to t/spec/S05-metasyntax/regex.t. Tests based on the original examples now pass. An additional, related, test for proper setting of match object with a similar implicit topic match does not pass yet.

[perl #65304] Rakudo doesn't understand :a(1) pair syntax inside a <<...>> quote

2009-05-01 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #65304] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=65304 > rakudo: say <<:a(1)>>.perl rakudo f934db: OUTPUT«":a(1)"␤» * masak reports rakudobug

[perl #65312] The error in type check for @ and % parameters is missing some information in Rakudo

2009-05-01 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #65312] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=65312 > rakudo: sub foo(%bar) {}; foo( -> {} ) rakudo 44c487: OUTPUT«Parameter type check fail

[perl #58524] =<> doesn't read from $*IN in Rakudo

2009-05-01 Thread Carl Mäsak via RT
On Thu Apr 30 07:49:00 2009, ronaldxs wrote: > > Shouldn't that be just =$*IN ? > > Times have changed and not anymore. Aye, resolving. > $ ./perl6 -e 'say =$*IN' > prefix:<=> has been superseeded by $handle.lines and $handle.get > > $*IN.lines seems to work and yes I am hoping someone will fix

[perl #58646] [TODO] convert 'new Failure' to '!FAIL'

2009-05-01 Thread Ron Schmidt via RT
Using find/grep to find calls to "new 'Failure'" in the current (non- generated) rakudo code base I came up with the short list below. They all seem to represent legitimate cases of wanting to allocate a Failure object to return an undef type value like an index search that fails to find its se

[perl #63042] Fwd: Failed spectests

2009-05-01 Thread Ron Schmidt via RT
Thank you for testing Rakudo and running the spectest suite. Rakudo is under development and it is sort of expected that for brief periods of time some tests may be broken. When reporting a rakudo bug please bear in mind that we hope to get enough information about the problem to track down i

[perl #65308] Monkey-patching from the outside using subtypes should either be disallowed, or it shouldn't affect the method dispatch of the original class in Rakudo

2009-05-01 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #65308] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=65308 > rakudo: subset FooStr of Str where /^foo/; multi method trim(FooStr $self:) { return "O

[perl #65272] Dispatch of static method call calls method in child class

2009-05-01 Thread via RT
# New Ticket Created by Arne Skjærholt # Please include the string: [perl #65272] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=65272 > The following script gives the ouput "A\nB", but the correct output should probably be

Temporal

2009-05-01 Thread Timothy S. Nelson
Hi. Can someone (Dave Rolsky?) please tell me why rewriting S32/Temporal in terms of Enum roles would be bad? See the example of Enum day roles here: http://www.rakudo.org/node/39 Thanks, - | Name: Tim Nelson