Re: Still about subroutines...

2004-09-16 Thread Larry Wall
On Thu, Sep 16, 2004 at 01:44:03PM -0500, Jonathan Scott Duff wrote: : On Thu, Sep 16, 2004 at 10:07:29AM -0700, Larry Wall wrote: : > I like $-, $+, and $? the best. Probably should save $- and $+ for something : > complimentary, which leaves $?. It's visually distinctive, and recently : > came

Re: Still about subroutines...

2004-09-16 Thread Larry Wall
On Thu, Sep 16, 2004 at 01:40:47PM -0600, Luke Palmer wrote: : Larry Wall writes: : > I like $-, $+, and $? the best. Probably should save $- and $+ for something : > complimentary, which leaves $?. It's visually distinctive, and recently : > came available. :-) : : Hmm, $& is pretty good, and

[perl #27287] [PATCH] creates README's in several languages/ directories

2004-09-16 Thread Will Coleda via RT
Thanks, (belatedly) applied, along with a MANIFEST patch. (Minus the python/README, which appears to have magically appeared sometime in the past six months! =-) > [EMAIL PROTECTED] - Mon Mar 01 16:58:08 2004]: > > This patch creates a couple of new small README's, for several > languages/ di

Re: [Devel::Cover] return conditions

2004-09-16 Thread Kevin Scaldeferri
On Sep 16, 2004, at 2:47 PM, Tels wrote: -BEGIN PGP SIGNED MESSAGE- Moin, On Thursday 16 September 2004 23:37, Geoffrey Young wrote: hi paul :) I think this has come up before, but I'm not sure what the resolution was. I just came across (production) code that looks like this: return 1 if

Re: [Devel::Cover] return conditions

2004-09-16 Thread Geoffrey Young
>>> return 1 if $one == $two or return 0; > > > Just FYI: > > I always wonder why someone would write such code. IMHO this is > unmaintainable code. I might not be an Perl expert, but I wouldn't consider > myself a beginner either, especially not at boolean logic. And still, my > mind canno

Re: [Devel::Cover] return conditions

2004-09-16 Thread Tels
-BEGIN PGP SIGNED MESSAGE- Moin, On Thursday 16 September 2004 23:37, Geoffrey Young wrote: > hi paul :) > > I think this has come up before, but I'm not sure what the resolution > was. > > I just came across (production) code that looks like this: > > return 1 if $one == $two or return

[Devel::Cover] return conditions

2004-09-16 Thread Geoffrey Young
hi paul :) I think this has come up before, but I'm not sure what the resolution was. I just came across (production) code that looks like this: return 1 if $one == $two or return 0; in the condition coverage the second return is always false, but I suppose that it could be argued that if the

Re: [perl #31606] [PATCH] Receive UnManagedStruct from C-code through NCI callbacks

2004-09-16 Thread Jens Rieks
On Thursday 16 September 2004 22:17, Bernhard Schmalhofer wrote: > # New Ticket Created by Bernhard Schmalhofer > # Please include the string: [perl #31606] > # in the subject line of all future correspondence about this issue. > # http://rt.perl.org:80/rt3/Ticket/Display.html?id=31606 > > > > Hi

[perl #31607] [TODO] Update PDD16 to reflect current state

2004-09-16 Thread via RT
# New Ticket Created by Will Coleda # Please include the string: [perl #31607] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=31607 > Leo says: >The docs aren't yet updated, sorry. Have a look at t/pmc/nci.t for example

[perl #31606] [PATCH] Receive UnManagedStruct from C-code through NCI callbacks

2004-09-16 Thread via RT
# New Ticket Created by Bernhard Schmalhofer # Please include the string: [perl #31606] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=31606 > Hi, so far external libraries can pass integers and strings to Parrot callba

Re: Still about subroutines...

2004-09-16 Thread Luke Palmer
Larry Wall writes: > I like $-, $+, and $? the best. Probably should save $- and $+ for something > complimentary, which leaves $?. It's visually distinctive, and recently > came available. :-) Hmm, $& is pretty good, and it's associated with subs mnemonically, just as $= is associated with lin

Re: Still about subroutines...

2004-09-16 Thread JOSEPH RYAN
- Original Message - From: Juerd <[EMAIL PROTECTED]> Date: Thursday, September 16, 2004 2:55 pm Subject: Re: Still about subroutines... > Jonathan Scott Duff skribis 2004-09-16 13:44 (-0500): > > Speaking of which ... why is it that $?foo and became > $<>> and <> respectively? > > per

Re: Still about subroutines...

2004-09-16 Thread Juerd
Jonathan Scott Duff skribis 2004-09-16 13:44 (-0500): > Speaking of which ... why is it that $?foo and became $<> > and <> respectively? perlcheat is one page. I hope that when Perl 6 is around, I can summarize all uses of << and >> on one page. The second page will be for the rest of the synta

Re: Still about subroutines...

2004-09-16 Thread Jonathan Scott Duff
On Thu, Sep 16, 2004 at 10:07:29AM -0700, Larry Wall wrote: > I like $-, $+, and $? the best. Probably should save $- and $+ for something > complimentary, which leaves $?. It's visually distinctive, and recently > came available. :-) Speaking of which ... why is it that $?foo and became $<> a

Re: Still about subroutines...

2004-09-16 Thread Larry Wall
On Thu, Sep 16, 2004 at 10:02:18AM -0600, Luke Palmer wrote: : The new alternative is MY.sub. I suppose that could return the current : actual sub, so if you're using a pointy sub you have to say MY.block or : something. But it's one of those two. Or something resembling them. I'm still pining

Re: Still about subroutines...

2004-09-16 Thread Luke Palmer
Michele Dondi writes: > Speaking of subs, and especially recursive ones which have been > mentioned en passant earlier, I have another question "of mine": I > know that in the vast majority of cases this won't be useful in any > way, but in the body of a (possibly anonymous) sub/block, will there >

Still about subroutines...

2004-09-16 Thread Michele Dondi
Speaking of subs, and especially recursive ones which have been mentioned en passant earlier, I have another question "of mine": I know that in the vast majority of cases this won't be useful in any way, but in the body of a (possibly anonymous) sub/block, will there be some sort of identifier to

[perl #31600] dlfunc should never lead to a PANIC

2004-09-16 Thread via RT
# New Ticket Created by Jens Rieks # Please include the string: [perl #31600] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=31600 > --- osname= linux osvers= 2.6.4 arch= i586-linux-thread-multi cc= cc --- Flags:

Re: S5: grammar compositions

2004-09-16 Thread Miroslav Silovic
On Wed, 2004-09-15 at 12:47 -0700, [EMAIL PROTECTED] wrote: > Grammar roles? > > Larry Hmm, actually a few questions on the topic: S5 doesn't specify whether grammars can have attributes. Can they? Can they have methods, or at least local subs, to call from the code within the rules? Can gramma

[perl #31601] GC bug triggered in examples/streams

2004-09-16 Thread via RT
# New Ticket Created by Jens Rieks # Please include the string: [perl #31601] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=31601 > --- osname= linux osvers= 2.6.4 arch= i586-linux-thread-multi cc= cc --- Flags:

Re: Updated doc and some code to reflect new Parrot_new() interface

2004-09-16 Thread Jens Rieks
On Wednesday 15 September 2004 14:56, StÃphane Payrard wrote: > Updated doc and some code to reflect new Parrot_new() interface Thanks, applied. (Even though src/test_main.c is no longer used.) jens

Re: SDL usage broken?

2004-09-16 Thread Jens Rieks
On Wednesday 08 September 2004 06:42, Aaron Sherman wrote: > When I try to run one of the SDL examples (any of them), I get: > > SDL::fetch_layout warning: layout 'Pixels' not found! > Segmentation fault > > When I edit runtime/parrot/library/SDL.imc and add the call to > _set_Pixels_layout in at l

Re: [S3, S4, S5]: =~ becomes ~~

2004-09-16 Thread Herbert Snorrason
> Okay, it ought to be there soon. I added it in the "New operators" > section, since it's pretty different from =~. That'd also be appropriate, but I didn't see an explicit mention anywhere... > Arguably the ~~ table should go in S3 instead of S4. It most likely should, since ~~ is an operator,

Re: NCI basics

2004-09-16 Thread Bernhard Schmalhofer
[EMAIL PROTECTED] wrote: | -- Original Message -- | From: Charles Lowell <[EMAIL PROTECTED]> | The whole reason I'm fooling around with nci in the first place is to | register callbacks as described in pdd16, and it was the function | signature of 'vCYZ' that was failing. The docs aren't yet up

Re: NCI basics

2004-09-16 Thread Jens Rieks
On Wednesday 15 September 2004 23:58, Brent 'Dax' Royal-Gordon wrote: > I'm not sure this is a panic-worthy error--panics are really meant for > cases where something has gone horribly, unfixably wrong in the > interpreter's guts, like a critical pointer in the ParrotInterp got > nulled out, or som

Re: [perl #31590] [PATCH] additional tests int/pmc/nci.t

2004-09-16 Thread Jens Rieks
On Wednesday 15 September 2004, Bernhard Schmalhofer wrote: > # New Ticket Created by Bernhard Schmalhofer > # Please include the string: [perl #31590] > # in the subject line of all future correspondence about this issue. > # http://rt.perl.org:80/rt3/Ticket/Display.html?id=31590 > > > > Hi, > >

Re: How would I do this in Perl6? #1

2004-09-16 Thread Michele Dondi
On Tue, 14 Sep 2004, Larry Wall wrote: > : So what I would like to do is (i) C the list of templates to a list > : of curried closures in which the first parameter is fixed to each given > : template, (ii) C this list by means of right pipe binop > : ( C<< ==> >> ) with a "starting value" (leftm

Re: How would I do this in Perl6? #1

2004-09-16 Thread Michele Dondi
On Thu, 16 Sep 2004, Michele Dondi wrote: > On Tue, 14 Sep 2004, Matt Diephouse wrote: > > > Or in Perl 5, which has to use 2 subs to have the same interface (code ^^^ ^^^

Re: How would I do this in Perl6? #1

2004-09-16 Thread Michele Dondi
On Tue, 14 Sep 2004, Matt Diephouse wrote: > Or in Perl 5, which has to use 2 subs to have the same interface (code ^ ^ Huh?!? #!/usr/bin/perl -l use strict; use warnings; sub extp ($@) { my $t=shift;

Re: NCI basics

2004-09-16 Thread lt
| -- Original Message -- | From: Charles Lowell <[EMAIL PROTECTED]> | The whole reason I'm fooling around with nci in the first place is to | register callbacks as described in pdd16, and it was the function | signature of 'vCYZ' that was failing. The docs aren't yet updated, sorry. Have a loo

[perl #31594] [TODO] Add Planet Parrot to the Website

2004-09-16 Thread via RT
# New Ticket Created by Matt Diephouse # Please include the string: [perl #31594] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=31594 > http://parrotcode.org should have a link (somewhere) to http://planet.parrotcode.o

Re: NCI basics

2004-09-16 Thread Charles Lowell
Brent 'Dax' Royal-Gordon wrote: Jens Rieks <[EMAIL PROTECTED]> wrote: It now prints an error message: with nothing with int 5 Parrot VM: PANIC: vt is an unknown signature type. CAN_BUILD_CALL_FRAMES is disabled, add the signature to src/call_list.txt! C file src/nci.c, line 4485 Parrot file (unk