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
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
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
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 =
# 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
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.
# 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
Илья (>):
> 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
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
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
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
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
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
# 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
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'
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
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
Илья 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
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
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
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)
: >
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
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
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
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
# 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
26 matches
Mail list logo