Re: [perl #60196] Failed spectests

2008-10-30 Thread Moritz Lenz
Ifejinelo Onyiah (via RT) wrote: > # New Ticket Created by "Ifejinelo Onyiah" > # Please include the string: [perl #60196] > # in the subject line of all future correspondence about this issue. > # http://rt.perl.org/rt3/Ticket/Display.html?id=60196 > > > > Just installed parrot 0.8.0, Revisi

Re: Invoking PGE closures as Rakudo code

2008-10-30 Thread Carl Mäsak
Chris (>): > And bug reports: > 1) Perl6 mangles Match instances when they are assigned to scalars > 2) The rules incorrectly require a closing ";" to avoid a syntax error > > I'm happy to write up concise ticket for any of those if they aren't insane > or already known. Well, I don't know about

[perl #31143] [TODO] Interpreter - share MMD tables

2008-10-30 Thread Allison Randal via RT
On Wed Oct 15 17:48:28 2008, Whiteknight wrote: > > With the pdd27mmd branch merged in now, what's the status of this request? The MMD table is now just a namespace, and namespaces are shareable between interpreters. So, resolved. Allison

Fwd: [november] Re: arrays and arrays ref question

2008-10-30 Thread Илья
Hi there, question about arrays and array refs in Rakudo today. I have array ref my $ar = [1,2,3]; how can I go over it? I try: > my $r = [1,2,3]; say $r.elems; 3 > my $r = [1,2,3]; say $r.WHAT; Array > my $r = [1,2,3]; "Y".say for $r; Y > my $r = [1,2,3]; .say for $r; 1 2 3 #one string > my $r =

[perl #60218] [PATCH] P6object.new_class 'hll' option is ignored

2008-10-30 Thread via RT
# New Ticket Created by Chris Dolan # Please include the string: [perl #60218] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=60218 > While reading code, I noticed that the implementation of P6object.new_class inadvertent

Re: [perl #60178] Commit r32189 breaks Parrot on Mac OS X 10.5.4

2008-10-30 Thread Carl Mäsak
Is there anything else I can do to help track down the bug? To get Parrot to compile, I can still use the trick of downdating src/multidispatch.c to r32188, but this gives me 7 failing tests, not surprizingly.

[perl #60206] [BUG] [MMD] Segfault in Lua exception handler

2008-10-30 Thread via RT
# New Ticket Created by Allison Randal # Please include the string: [perl #60206] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=60206 > Original Message Subject: Re: Segfault in Lua exception handler Date

Re: [november] Re: arrays and arrays ref question

2008-10-30 Thread Carl Mäsak
Илья (>): > I have array ref > my $ar = [1,2,3]; > how can I go over it? All I know is that `for $ar.elems { ... }` used to work for this case. It doesn't seem to work anymore. Time to file a ticket, methinks. // Carl

Re: Fwd: [november] Re: arrays and arrays ref question

2008-10-30 Thread Carl Mäsak
Timothy (>): > my $r = <1 2 3>; for $r -> $t { say $t }; Which revision of Rakudo are you running? In my r32239, it outputs "1 2 3" on the same line (i.e. it doesn't iterate over each element). // Carl

Re: Fwd: [november] Re: arrays and arrays ref question

2008-10-30 Thread Timothy S. Nelson
On Thu, 30 Oct 2008, wrote: Hi there, question about arrays and array refs in Rakudo today. I have array ref my $ar = [1,2,3]; how can I go over it? I try: my $r = [1,2,3]; say $r.elems; 3 my $r = [1,2,3]; say $r.WHAT; Array my $r = [1,2,3]; "Y".say for $r; Y my $r = [1,2,3]; .say

Re: Fwd: [november] Re: arrays and arrays ref question

2008-10-30 Thread Timothy S. Nelson
On Thu, 30 Oct 2008, Carl Mäsak wrote: Timothy (>): my $r = <1 2 3>; for $r -> $t { say $t }; Which revision of Rakudo are you running? In my r32239, it outputs "1 2 3" on the same line (i.e. it doesn't iterate over each element). Oops. My bad. Try either of the following with par

Re: Fwd: [november] Re: arrays and arrays ref question

2008-10-30 Thread Carl Mäsak
Timothy (>): >>> my $r = <1 2 3>; for $r -> $t { say $t }; >> >> Which revision of Rakudo are you running? In my r32239, it outputs "1 >> 2 3" on the same line (i.e. it doesn't iterate over each element). > >Oops. My bad. Try either of the following with parrot 0.8.0. > > perl6 -e 'my $r

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

[perl #60228] fix for split on zero-width

2008-10-30 Thread Chris Davaz
# New Ticket Created by "Chris Davaz" # Please include the string: [perl #60228] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=60228 > This is a fix for splitting strings on regular expressions that contain zero-width matc

Known Bug in Rakudo?

2008-10-30 Thread Ovid
This code: class Point { has $.x is rw; has $.y is rw; method get_string () { return "<$.x, $.y>"; } } my Point $point .= new( :x<1.2>, :y<-3.7> ); say $point.x; say $point; Generates this output: 1.2 get_string() not implemented in class 'Point'

Re: operator vs function

2008-10-30 Thread Moritz Lenz
Xiao Yafeng wrote: > 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) But remember

Re: Known Bug in Rakudo?

2008-10-30 Thread Moritz Lenz
Ovid wrote: > This code: > > class Point { > has $.x is rw; > has $.y is rw; > > method get_string () { The correct way to define user-defined stringfication is either through method Str { ... } or method prefix:<~> ($self: ) { ... } (afaict both are not implemented in Ra

Re: Fwd: [november] Re: arrays and arrays ref question

2008-10-30 Thread Moritz Lenz
Илья wrote: > Hi there, > question about arrays and array refs in Rakudo today. > > I have array ref > my $ar = [1,2,3]; > how can I go over it? Currently I think you can't, because the array contextualizer isn't implemented yet. I think it should be for @$ar { ... } or even for @ $ar { ... } or

Re: Fwd: [november] Re: arrays and arrays ref question

2008-10-30 Thread Carl Mäsak
Moritz (>), Илья (>>): >> I have array ref >> my $ar = [1,2,3]; >> how can I go over it? > > Currently I think you can't, because the array contextualizer isn't > implemented yet. I think it should be > > for @$ar { ... } > or even > for @ $ar { ... } > or > for @($ar) { ... } This would arguably

Re: Known Bug in Rakudo?

2008-10-30 Thread Mark J. Reed
On Thu, Oct 30, 2008 at 12:46 PM, Moritz Lenz <[EMAIL PROTECTED]> wrote: > The correct way to define user-defined stringfication is either through > > method Str { ... } > > or > > method prefix:<~> ($self: ) { ... } > > (afaict both are not implemented in Rakudo yet) Yeah, I can't even declare a

Re: operator vs function

2008-10-30 Thread Larry Wall
On Thu, Oct 30, 2008 at 05:41:11PM +0100, Moritz Lenz wrote: : Xiao Yafeng wrote: : > 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) : >

Re: Known Bug in Rakudo?

2008-10-30 Thread Patrick R. Michaud
On Thu, Oct 30, 2008 at 05:46:11PM +0100, Moritz Lenz wrote: > > I think that every class should have a default stringification. Dunno if > there's a ticket for it yet. I don't think there's a _spec_ for a default stringification yet. So we should probably propose that first, and then see about

Re: Fwd: [november] Re: arrays and arrays ref question

2008-10-30 Thread Guy Hulbert
On Thu, 2008-30-10 at 17:25 +0100, Carl Mäsak wrote: > > for @($ar) { ... } > > This would arguably be the nicest variant. for ( @$ar ) { ... } ? -- --gh

Re: [november] Re: arrays and arrays ref question

2008-10-30 Thread Larry Wall
On Thu, Oct 30, 2008 at 12:03:55PM +0100, Carl Mäsak wrote: : Илья (>): : > I have array ref : > my $ar = [1,2,3]; : > how can I go over it? : : All I know is that `for $ar.elems { ... }` used to work for this case. : It doesn't seem to work anymore. : : Time to file a ticket, methinks. Er, .ele

Re: Known Bug in Rakudo?

2008-10-30 Thread Moritz Lenz
Patrick R. Michaud wrote: > On Thu, Oct 30, 2008 at 05:46:11PM +0100, Moritz Lenz wrote: >> >> I think that every class should have a default stringification. Dunno if >> there's a ticket for it yet. > > I don't think there's a _spec_ for a default stringification yet. > So we should probably p

[perl #60234] [TODO] Implement method .contains on hashes

2008-10-30 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #60234] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=60234 > Mentioned several times in S03. Tip: this is low-hanging fruit. The fame/work quotient