Re: Should a dirhandle be a filehandle-like iterator?

2007-04-14 Thread Yuval Kogman
Why bother, actually, when it can just be a lazy list... Opendir and closedir are very oldschool, and can be retained for whatever technical detail they are needed, but in most modern code I think that: for readdir($dir_name) { .say } should work as well. The act of opening a directory

Re: Should a dirhandle be a filehandle-like iterator?

2007-04-14 Thread Steve Peters
On Fri, Apr 13, 2007 at 07:43:23PM -0500, brian d foy wrote: As I was playing around with dirhandles, I thought What if... (which is actualy sorta fun to do in Pugs, where Perl 5 has everything documented somewhere even if nobody has read it). My goal is modest: explain fewer things in the

Re: Should a dirhandle be a filehandle-like iterator?

2007-04-14 Thread Smylers
Jonathan Lang writes: Also: why distinguish between open and opendir? If the string is the name of a file, 'open' means open the file; if it is the name of a directory, 'open' means open the directory. Many programs open a file from a name specified by the user. Even if Copenfile existed,

Re: [perl #41894] segfault happens when invoking poll op

2007-04-14 Thread Jonathan Worthington
Hi, This patch broke the build on some platforms (Win32 with MSVC++ included). INTVAL PIO_poll(Interp *interp, PMC *pmc, INTVAL which, INTVAL sec, INTVAL usec) { +if (pmc == PMCNULL) { + real_exception(interp, NULL, E_ValueError, Can't poll NULL pmc); +} ParrotIOLayer *

[perl #42508] [CAGE] cleanup pmc null tests

2007-04-14 Thread via RT
# New Ticket Created by Jerry Gay # Please include the string: [perl #42508] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=42508 in #41894, a patch was applied with a test like: pmc == PMCNULL the preferred way

[perl #42509] [PATCH] Quiet some warnings under -ansi -pedantic

2007-04-14 Thread via RT
# New Ticket Created by Steve Peters # Please include the string: [perl #42509] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=42509 ndex: src/exec_save.c

Re: [perl #42509] [PATCH] Quiet some warnings under -ansi -pedantic

2007-04-14 Thread chromatic
On Saturday 14 April 2007 09:17, Steve Peters wrote: # New Ticket Created by Steve Peters # Please include the string: [perl #42509] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=42509 Thanks, applied as r18204.

[perl #39784] Make Parrot's default namespace be untyped

2007-04-14 Thread Allison Randal via RT
On Mon Jul 10 17:25:13 2006, chip wrote: Parrot's default namespace implementation should be 100% untyped -- basically just a hash with some additional methods. Making this happen requires solving the problem of Parrot's currently requiring classes and class method namespaces to have the

Re: [perl #41894] segfault happens when invoking poll op

2007-04-14 Thread Joshua Isom
On Apr 14, 2007, at 7:44 AM, Jonathan Worthington wrote: Hi, This patch broke the build on some platforms (Win32 with MSVC++ included). INTVAL PIO_poll(Interp *interp, PMC *pmc, INTVAL which, INTVAL sec, INTVAL usec) { +if (pmc == PMCNULL) { + real_exception(interp, NULL,

[perl #42510] Move main() Out of compilers/imcc/main.c

2007-04-14 Thread via RT
# New Ticket Created by chromatic # Please include the string: [perl #42510] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=42510 The attached patch moves only the main() function out of compilers/imcc/main.c into

Regexp: s/at($pos)/$str/ should replace or add?

2007-04-14 Thread gabriele renzi
Hello, sorry about the dumb question but I'm not sure I understand the at($pos) assertion. If I write something like my $s=hello s/at(1)/a/ I expected it to give me hallo whereas it give ms haello. Does it mean that basically the assertion is a character/string property instead of the

Re: Regexp: s/at($pos)/$str/ should replace or add?

2007-04-14 Thread A. Pagaltzis
* gabriele renzi [EMAIL PROTECTED] [2007-04-14 22:20]: sorry about the dumb question but I'm not sure I understand the at($pos) assertion. If I write something like my $s=hello s/at(1)/a/ I expected it to give me hallo whereas it give ms haello. Does it mean that basically the

Re: [perl #42510] Move main() Out of compilers/imcc/main.c

2007-04-14 Thread chromatic
On Saturday 14 April 2007 12:44, chromatic wrote: The attached patch moves only the main() function out of compilers/imcc/main.c into src/main.c. There's a lot more work to do to clean up this mess, including RT #37248. If you want a patch that compiles, try instead this one. Note that it

Re: [perl #42509] [PATCH] Quiet some warnings under -ansi -pedantic

2007-04-14 Thread Jonathan Worthington
Hi, I just backed out one small part of this patch because it broke the build using MS VC++ on Win32. Steve Peters (via RT) wrote: ndex: src/exec_save.c === --- src/exec_save.c (revision 18179) +++ src/exec_save.c

Configure.pl: Question about block calling arrot::Configure::runstep()

2007-04-14 Thread James Keenan
I am trying to determine the purpose of a certain block of code in Configure.pl. In the most recent version in trunk, we find: if ( exists $args{step} ) { $conf-data()-slurp(); $conf-runstep( $args{step} ); print \n; exit(0); } else { # Run the

Re: Limiting Exported Symbols on GCC

2007-04-14 Thread Joshua Hoblitt
On Thu, Apr 12, 2007 at 04:56:15PM +0200, [EMAIL PROTECTED] wrote: On Thu, Apr 12, 2007 at 09:13:14AM -0500, Steve Peters wrote: On Thu, Apr 12, 2007 at 01:37:24PM +0200, Ron Blaschke wrote: While poking the GCC documentation I found that there's a feature available to limit the exported

Re: modifying classes after they're instantiated

2007-04-14 Thread Bob Rogers
From: Alek Storm [EMAIL PROTECTED] Date: Thu, 12 Apr 2007 21:55:34 -0500 On 4/11/07, Allison Randal [EMAIL PROTECTED] wrote: They might not clone their classes from the user perspective, but internally it's the only truly safe way to modify a class that already has objects

Re: Configure.pl: Question about block calling arrot::Configure::runstep()

2007-04-14 Thread Patrick R. Michaud
On Sat, Apr 14, 2007 at 06:41:19PM -0400, James Keenan wrote: I am trying to determine the purpose of a certain block of code in Configure.pl. In the most recent version in trunk, we find: ... My questions are: 1. If you've already configured, why would you want to add another step

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

2007-04-14 Thread allison
Author: allison Date: Sat Apr 14 17:00:11 2007 New Revision: 18212 Modified: trunk/docs/pdds/draft/pdd17_basic_types.pod Log: [pdd]: Adding some questions about PMC role composition from IRC. Modified: trunk/docs/pdds/draft/pdd17_basic_types.pod

[svn:parrot-pdd] r18213 - trunk/docs/pdds

2007-04-14 Thread allison
Author: allison Date: Sat Apr 14 17:06:35 2007 New Revision: 18213 Modified: trunk/docs/pdds/pdd15_objects.pod Log: [pdd]: Add clarification of get_class behavior with various different types of arguments. Modified: trunk/docs/pdds/pdd15_objects.pod

Re: [perl #42509] [PATCH] Quiet some warnings under -ansi -pedantic

2007-04-14 Thread Steve Peters
On Sat, Apr 14, 2007 at 11:05:27PM +0100, Jonathan Worthington wrote: Hi, I just backed out one small part of this patch because it broke the build using MS VC++ on Win32. Steve Peters (via RT) wrote: ndex: src/exec_save.c

Re: Configure.pl: Question about block calling arrot::Configure::runstep()

2007-04-14 Thread James Keenan
On Apr 14, 2007, at 7:18 PM, Patrick R. Michaud wrote: On Sat, Apr 14, 2007 at 06:41:19PM -0400, James Keenan wrote: I am trying to determine the purpose of a certain block of code in Configure.pl. In the most recent version in trunk, we find: ... My questions are: 1. If you've already

CGI.pm renaming (was Re: CGI Session management (was Re: the CGI.pm in Perl 6))

2007-04-14 Thread Jacinta Richardson
Juerd wrote: Jacinta Richardson skribis 2006-09-21 0:13 (+1000): My biggest gripe with CGI's html methods is the inconsistency in their names. I use them every now and then, but I always have to go and look up the documentation. It's textfield isn't it? So that would make this one

[perl #39851] [BUG] .HLL doesn't reset the .namespace

2007-04-14 Thread Allison Randal via RT
Fixed in r18215.

[svn:parrot-pdd] r18216 - in trunk: docs docs/pdds/draft lib/Parrot src src/jit/i386 src/jit/sun4 t/tools

2007-04-14 Thread chromatic
Author: chromatic Date: Sat Apr 14 20:31:19 2007 New Revision: 18216 Modified: trunk/docs/pdds/draft/pddXX_pmc.pod Changes in other areas also in this revision: Modified: trunk/docs/vtables.pod trunk/lib/Parrot/Pmc2c.pm trunk/lib/Parrot/Vtable.pm trunk/src/hll.c

Re: [perl #42430] [PATCH] make :vtable imply :method

2007-04-14 Thread Alek Storm
On 4/11/07, chromatic [EMAIL PROTECTED] wrote: Allison's right about method visibility outside of the vtable, and throwing :anon on there seems a little hacky. Is this a behavior problem or a syntax problem? IIUC, putting :anon on a sub makes it inaccessible only through the namespace - the