[perl #41642] [BUG] tailcall with slurpy gives segfault

2007-03-02 Thread Bob Rogers
From: "[EMAIL PROTECTED] via RT" <[EMAIL PROTECTED]> Date: Fri, 02 Mar 2007 13:45:20 -0800 Hi, I just fixed a GC bug relating to slurpys (a more general one reported by Bernhard++, not just specific to tail calls) in the args passing code. Please check with the latest in SVN and

[svn:parrot-pdd] r17301 - trunk/docs/pdds/draft

2007-03-02 Thread allison
Author: allison Date: Fri Mar 2 18:00:45 2007 New Revision: 17301 Modified: trunk/docs/pdds/draft/pdd15_objects.pod Log: [pdd]: Adding more details on roles to objects PDD. Modified: trunk/docs/pdds/draft/pdd15_objects.pod

Re: for ... else

2007-03-02 Thread Thomas Wittek
Luke Palmer schrieb: > That is not what it means in Python. You trapped me. :) Actually I don't know any python but I've once read a for/else construct in python. But obviously it doesn't dwIm. >From the Python Reference Manual: When the items are exhausted (which is immediately when the seque

[perl #41602] [TODO] MS VS 2005 deprecates strdup

2007-03-02 Thread [EMAIL PROTECTED] via RT
Hi, Applied in 17281, thanks. For your question, strdup is fine since these are not garbage collectable strings (STRING*), just normal C char*'s. There is loads of them used in IMCC. Unfortunately though, there is an issue in that we don't free a load of 'em, or at least hadn't used to and I doub

[perl #41665] [PATCH] lang/pynie updates for "not" and "and"

2007-03-02 Thread via RT
# New Ticket Created by Klaas-Jan Stol # Please include the string: [perl #41665] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=41665 > hi, attached a patch fixing the "not" operator and "and". for pynie. regards. kjs In

[perl #41642] [BUG] tailcall with slurpy gives segfault

2007-03-02 Thread [EMAIL PROTECTED] via RT
Hi, I just fixed a GC bug relating to slurpys (a more general one reported by Bernhard++, not just specific to tail calls) in the args passing code. Please check with the latest in SVN and see if that resolves the problem. (Bob, your patch was heading in the right direction, but I fixed this with

[perl #41666] Test PIR and PASM by generating PBC and running it

2007-03-02 Thread via RT
# New Ticket Created by Bernhard Schmalhofer # Please include the string: [perl #41666] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=41666 > In ticket #41604 particle mentioned: testing functions which accept pir as inpu

[perl #41670] [PATCH] languages/pynie more operator past

2007-03-02 Thread via RT
# New Ticket Created by Klaas-Jan Stol # Please include the string: [perl #41670] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=41670 > hi, attached a patch for lang/pynie. fixing: * added transform for is [not] and [not

[perl #41668] Remove docs/BROKEN.pod ?

2007-03-02 Thread via RT
# New Ticket Created by Bernhard Schmalhofer # Please include the string: [perl #41668] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=41668 > Does anybody use or even look at docs/BROKEN.pod? If not, then BROKEN.pod shoul

[perl #41364] [PATCH] Fixed object vtable method overrides in PIR

2007-03-02 Thread [EMAIL PROTECTED] via RT
On Sun Feb 25 20:10:00 2007, [EMAIL PROTECTED] wrote: > Now that 0.4.9 has been released, can this be committed? > I just tried, but I get: /home/default/jnthn.net/dev/parrot/blib/lib/libparrot.so: undefined reference to `find_vtable_meth' collect2: ld returned 1 exit status After applying it. A

Some questions about miltislices and other things

2007-03-02 Thread Ryan Richter
As a little Perl 6 exercise I translated the Perl 5 Markov chain / dissociated-press script from _The Practice of Programming_: http://cm.bell-labs.com/cm/cs/tpop/markov.pl Here's my Perl 6 attempt, with support for different prefix lengths. my $n = 2; # prefix lengt

Re: for ... else

2007-03-02 Thread Rick Delaney
On Mar 02 2007, Luke Palmer wrote: > Or I wonder if there's really a problem here that we're > addressing, or whether we're just adding syntax because we can. This syntax awkwardness comes up a lot in various kinds of reports. for @records { .print; } if @records { say

Re: [perl #41619] [PATCH] add add_attr, rem_attr, and rem_attr_str vtable methods

2007-03-02 Thread Allison Randal
Alek Storm (via RT) wrote: This patch adds the add_attr, rem_attr, and rem_attr_str vtable methods. These will come in handy for Ruby's metaclasses or Smalltalk's class objects. The only PMC currently affected by this is ParrotClass, and the rem_attr and rem_attr_str methods are still unimplem

Re: for ... else

2007-03-02 Thread Luke Palmer
On 3/2/07, Thomas Wittek <[EMAIL PROTECTED]> wrote: Today I stumbled upon the Perl5 module For::Else. It adds an else block to a foreach loop: foreach my $item (@items) { #process each item } else { #handle the empty list case } I find it a very nice addition as I've written code

Re: for ... else

2007-03-02 Thread Paul Seamons
> foreach my $item (@items) { > #process each item > } else { > #handle the empty list case > } > > What do you think? I'm not sure if I like it, but there have been several times that I would've used it recently. I think it would certainly have utility. Paul

for ... else

2007-03-02 Thread Thomas Wittek
Today I stumbled upon the Perl5 module For::Else. It adds an else block to a foreach loop: foreach my $item (@items) { #process each item } else { #handle the empty list case } I find it a very nice addition as I've written code like this: if (@stuff) { for my $thing (@stuff) {