Re: throw oddities in pdd23

2008-09-22 Thread Allison Randal
Stephen Weeks wrote: Commit 31294 implements this behavior. Can I get confirmation that it's correct? Just looked over the diff. Perfect. Thanks! Allison

Re: [svn:parrot] r31305 - in branches/pdd27mmd: include/parrot src

2008-09-22 Thread Allison Randal
chromatic wrote: On Sunday 21 September 2008 03:17:18 [EMAIL PROTECTED] wrote: +dod_unregister_pmc(interp, sig_object); [...] That's far away from registering the PMC; is there a way to move them closer together? We could register it after it's returned from 'Parrot_build_sig_object_fro

[perl #59184] Some fixes to split methods

2008-09-22 Thread Chris Davaz
# New Ticket Created by "Chris Davaz" # Please include the string: [perl #59184] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=59184 > I have implemented the limit parameter on both Str.split(String, Integer) and Str.split

Re: [svn:parrot] r31324 - trunk/src/pmc

2008-09-22 Thread Vasily Chekalkin
NotFound wrote: +=item C + +Removes the element at C. + +=cut + +*/ + +VTABLE void delete_keyed_int(INTVAL key) { +INTVAL size = PMC_int_val(SELF); With the use of the set_integer_native entry later, this should probably be: INTVAL size = SELF.get_integer(); I borrowed it f

Parrot Bug Summary

2008-09-22 Thread Parrot Bug Summary
Parrot Bug Summary http://rt.perl.org/rt3/NoAuth/parrot/Overview.html Generated at Mon Sep 22 13:00:02 2008 GMT --- * Numbers * New Issues * Overview of Open Issues * Ticket Status By Version * Requestors with m

Re: Subroutine parameter with trait and default.

2008-09-22 Thread Patrick R. Michaud
On Sun, Sep 21, 2008 at 07:02:37PM -0700, Michael G Schwern wrote: > I'm pondering what the proper syntax is for a subroutine parameter with both a > trait and a default. That is... > sub foo ($arg = 42) > and > sub foo ($arg is readonly) > together in one parameter. Would that be >

Re: [perl #57776] [BUG] PIO_buf_read segfault

2008-09-22 Thread NotFound
Applied with some changes in r31335 -- Salu2

Re: method signature issues

2008-09-22 Thread Patrick R. Michaud
On Mon, Sep 22, 2008 at 02:35:20PM +0800, Chris Davaz wrote: > Awesome Patrick, you totally nailed it ;-) > > I'll be submitting a patch soon. Do you know if there is a Parrot bug > logged for the problem you described? I don't think there's a Parrot bug filed for the issue of MMD dispatch on str

Re: [perl #59068] Re: [november] Re: .perl fix

2008-09-22 Thread Patrick R. Michaud
On Sun, Sep 21, 2008 at 10:50:22AM -0700, Moritz Lenz via RT wrote: > Patrick R. Michaud wrote: > > It would help if someone could describe all of the things that > > need escaping, either as prose, Perl code, or text. > > (CC'ed p6c and the ticket, hope it worked) > > afaict the following charac

[perl #59202] [BUG] [PATCH] Perl 6 code "class A::A {}; class A::A {}" crashes parrot

2008-09-22 Thread Patrick R. Michaud via RT
Patch rejected -- this patch modifies core OO-handling of Parrot to assume that '::' is a valid classname separator. Parrot doesn't use '::' as a separator -- that's strictly a Perlism. Pm

Re: [perl #59068] Re: [november] Re: .perl fix

2008-09-22 Thread Moritz Lenz
Patrick R. Michaud wrote: > On Sun, Sep 21, 2008 at 10:50:22AM -0700, Moritz Lenz via RT wrote: >> Patrick R. Michaud wrote: >> > It would help if someone could describe all of the things that >> > need escaping, either as prose, Perl code, or text. >> >> (CC'ed p6c and the ticket, hope it worked)

Re: Subroutine parameter with trait and default.

2008-09-22 Thread TSa
HaloO, Patrick R. Michaud wrote: The STD.pm grammar [1] shows that the second is the correct form -- i.e., default values occur after traits. IIRC, there used to be an 'is default(42)' trait that could be placed arbitrarily. PS Incidentally, it seems silly to have "is rw" but not "is ro".

Re: Subroutine parameter with trait and default.

2008-09-22 Thread Michael G Schwern
Patrick R. Michaud wrote: > On Sun, Sep 21, 2008 at 07:02:37PM -0700, Michael G Schwern wrote: >> I'm pondering what the proper syntax is for a subroutine parameter with both >> a >> trait and a default. That is... >> sub foo ($arg = 42) >> and >> sub foo ($arg is readonly) >> together

[perl #59204] [BUG] .trans method modifies its argument

2008-09-22 Thread Patrick R. Michaud (via RT)
# New Ticket Created by Patrick R. Michaud # Please include the string: [perl #59204] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=59204 > The .trans method appears to be modifying its argument: $ cat x my $x = [1,2,3] =

Re: [svn:parrot] r31324 - trunk/src/pmc

2008-09-22 Thread NotFound
On Mon, Sep 22, 2008 at 12:34 AM, NotFound <[EMAIL PROTECTED]> wrote: >>> +=item C >>> + >>> +Removes the element at C. >>> + >>> +=cut >>> + >>> +*/ >>> + >>> +VTABLE void delete_keyed_int(INTVAL key) { >>> +INTVAL size = PMC_int_val(SELF); >> >> With the use of the set_integer_native

Re: [svn:parrot] r31324 - trunk/src/pmc

2008-09-22 Thread chromatic
On Monday 22 September 2008 13:01:35 NotFound wrote: > After some looking: other functions on this pmc uses elements, that is > implemented in the parent, FixedIntegerArray. FixedIntegerArray > implements get_integer by calling elements, so looks like elements is > the 'boss'. > > Will be better

Re: S04-related closure question

2008-09-22 Thread Patrick R. Michaud
On Sat, Jul 12, 2008 at 09:52:34PM -0500, Patrick R. Michaud wrote: > What would be the expected output from the following? > > my $a = foo(); > my $b; > > { > my $x = 1; > sub get_x() { return $x; } > sub foo() { return &get_x; } > $b = foo(); >

more fixes to split

2008-09-22 Thread Chris Davaz
please see http://rt.perl.org/rt3/Ticket/Display.html?id=59184 for more info and for the patch