[perl #41055] [BUG]: 'Argument is not numeric' warning in Darwin configuration

2006-12-08 Thread via RT
# New Ticket Created by James Keenan # Please include the string: [perl #41055] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=41055 While running 'perl Configure.pl' last night, I got the following warning:

yield from a method

2006-12-08 Thread Will Coleda
Given the current :method and .yield implementations, the following code: $ cat foo.pir .sub main :main $P1 = newclass 'foo' $P2 = new 'foo' $S1 = $P2.'bork'() say $S1 $P3 = new 'foo' $S1 = $P3.'bork'() say $S1 .end .namespace [ 'foo'] .sub bork :method $I0 = 0 loop: .yield($I0) inc $I0

p6 variable binding in Parrot

2006-12-08 Thread Patrick R. Michaud
Does anyone have any suggestions about what sort of PIR code and/or PMCs we need to be able to do make the following Perl 6 code work...? my @a; @a[4] = 'Hello'; my $b := @a[4]; say $b;# says Hello @a[4] = [1, 2]; say $b;# says 1 2

Re: p6 variable binding in Parrot

2006-12-08 Thread Matt Diephouse
Patrick R. Michaud [EMAIL PROTECTED] wrote: Does anyone have any suggestions about what sort of PIR code and/or PMCs we need to be able to do make the following Perl 6 code work...? Sure. I think Tcl handles this pretty nicely at the moment (although Leo disagrees - he likes the Ref PMC

Re: p6 variable binding in Parrot

2006-12-08 Thread Leopold Toetsch
Am Freitag, 8. Dezember 2006 22:43 schrieb Patrick R. Michaud: Does anyone have any suggestions about what sort of PIR code and/or PMCs we need to be able to do make the following Perl 6 code work...?     my @a;     @a[4] = 'Hello';     my $b := @a[4];     say $b;                # says

Re: p6 variable binding in Parrot

2006-12-08 Thread Patrick R. Michaud
On Fri, Dec 08, 2006 at 05:05:00PM -0500, Matt Diephouse wrote: Patrick R. Michaud [EMAIL PROTECTED] wrote: Does anyone have any suggestions about what sort of PIR code and/or PMCs we need to be able to do make the following Perl 6 code work...? Sure. I think Tcl handles this pretty nicely

yield from a method

2006-12-08 Thread Bob Rogers
From: Will Coleda [EMAIL PROTECTED] Date: Fri, 08 Dec 2006 16:00:37 -0500 Given the current :method and .yield implementations . . . . . . Which is unsurprising given the current implementation. Is this desired behavior, though? This does not work right for nonmethods

Re: yield from a method

2006-12-08 Thread Will Coleda
On Dec 8, 2006, at 6:45 PM, Bob Rogers wrote: From: Will Coleda [EMAIL PROTECTED] Date: Fri, 08 Dec 2006 16:00:37 -0500 Given the current :method and .yield implementations . . . . . . Which is unsurprising given the current implementation. Is this desired behavior,

Re: yield from a method

2006-12-08 Thread Bob Rogers
From: Will Coleda [EMAIL PROTECTED] Date: Fri, 8 Dec 2006 19:58:25 -0500 . . . I'm attempting to implement the 'Range' object (and other lazy lists) for perl6, using a coroutine to generate the next value in the range. At the moment, all instantiations of the range object

Re: Re: p6 variable binding in Parrot

2006-12-08 Thread Matt Diephouse
Patrick R. Michaud [EMAIL PROTECTED] wrote: On Fri, Dec 08, 2006 at 05:05:00PM -0500, Matt Diephouse wrote: Patrick R. Michaud [EMAIL PROTECTED] wrote: Does anyone have any suggestions about what sort of PIR code and/or PMCs we need to be able to do make the following Perl 6 code work...?