Re: Lvalue Str::words iterator

2005-06-15 Thread Larry Wall
Y'all are getting hung up on the correspondence of "words" with "word characters", but you're ignoring the fact that most of the time people want to do awk's version of splitting, matching \S+ words rather than \w+ words (*neither* of which actually matches what people usually mean by words, in any

Re: PATCH: S04 - unary C<=> is not slurpy

2005-06-15 Thread Damian Conway
Autrijus asked: On Wed, Jun 15, 2005 at 05:37:18PM -0500, Patrick R. Michaud wrote: Based on an off-list discussion, it turns out that unary C<=> is not slurpy as mentioned in S04. The following patch to S04 corrects this; I've already applied the patch but thought I'd pass it by p6l for revi

Re: PATCH: S04 - unary C<=> is not slurpy

2005-06-15 Thread Autrijus Tang
On Wed, Jun 15, 2005 at 05:37:18PM -0500, Patrick R. Michaud wrote: > Based on an off-list discussion, it turns out that unary C<=> > is not slurpy as mentioned in S04. The following patch to S04 > corrects this; I've already applied the patch but thought I'd > pass it by p6l for review/comments/r

PATCH: S04 - unary C<=> is not slurpy

2005-06-15 Thread Patrick R. Michaud
Based on an off-list discussion, it turns out that unary C<=> is not slurpy as mentioned in S04. The following patch to S04 corrects this; I've already applied the patch but thought I'd pass it by p6l for review/comments/reactions. Pm Index: S04.pod ==

Adding methods to (existing) classes

2005-06-15 Thread Patrick R. Michaud
Given that I have a subroutine stored in a PMC, is there a way for me to add that subroutine as a method to an existing class? In other words, I know I can use to add the subroutine into the current namespace... .namespace [ "Foo" ] .sub main @MAIN $S0 = ".sub h @ANON\npr

PIR syntax changes WRT arg & result passing

2005-06-15 Thread Chip Salzenberg
I'm about to update the PIR docs, but here's the short version: * the "prototyped" and "non_prototyped" pragmas for subroutines are both gone; the concept of 'prototyped' is obsolete. Just remove them those pragmas entirely. * if you used to say ".flatten foo" (or ".flatten_arg foo"),

Re: new mailing list: perl6-general?

2005-06-15 Thread David Storrs
On Jun 15, 2005, at 3:33 PM, Patrick R. Michaud wrote: And here they are... this is just a draft -- feel free to flame/edit/ tear it apart liberally. These are also written assuming we don't create a perl6-general list (but it shouldn't be hard to adapt them should one be created). Well, I'd

Re: Lvalue Str::words iterator

2005-06-15 Thread Juerd
Ingo Blechschmidt skribis 2005-06-15 21:35 (+0200): > So maybe we should allow words() (or however we'll end up calling it) to > take an optional parameter specifying what's considered a wordchar, > with a default of rx/\w+/: Then isn't making \w+ the default for match much easier? (Although I st

Re: Lvalue Str::words iterator

2005-06-15 Thread Ingo Blechschmidt
Hi, Juerd wrote: > Ingo Blechschmidt skribis 2005-06-15 20:18 (+0200): >> >> say join ",", @words; # "hi,my,name,is,ingo"; >> > Following the logic that .words returns the words, the words are no >> > longer individual words when joined on comma instead of >> > whitespace... >> sorry, I do

Re: new mailing list: perl6-general?

2005-06-15 Thread Patrick R. Michaud
On Tue, Jun 14, 2005 at 10:04:34AM -0500, Patrick R. Michaud wrote: > > Perhaps what we need is updated descriptions of the various mailing > lists on perl.org (http://dev.perl.org/perl6/lists/)? I'll draft > some proposed changes to that page. And here they are... this is just a draft -- feel

Re: Lvalue Str::words iterator

2005-06-15 Thread Juerd
Ingo Blechschmidt skribis 2005-06-15 20:18 (+0200): > >> say join ",", @words; # "hi,my,name,is,ingo"; > > Following the logic that .words returns the words, the words are no > > longer individual words when joined on comma instead of whitespace... > sorry, I don't quite get that. "foo

Re: Lvalue Str::words iterator

2005-06-15 Thread Ingo Blechschmidt
Hi, Juerd wrote: > Ingo Blechschmidt skribis 2005-06-15 19:14 (+0200): >> as Larry mentioned in another thread that he wants a "different >> notation for word splitting" >> (http://www.nntp.perl.org/group/perl.perl6.language/21874), >> how about that, similar to Haskell's "words" function: > > "w

Re: Lvalue Str::words iterator

2005-06-15 Thread Juerd
Ingo Blechschmidt skribis 2005-06-15 19:14 (+0200): > as Larry mentioned in another thread that he wants a "different > notation for word splitting" > (http://www.nntp.perl.org/group/perl.perl6.language/21874), > how about that, similar to Haskell's "words" function: "words" is wrong for something

Lvalue Str::words iterator

2005-06-15 Thread Ingo Blechschmidt
Hi, as Larry mentioned in another thread that he wants a "different notation for word splitting" (http://www.nntp.perl.org/group/perl.perl6.language/21874), how about that, similar to Haskell's "words" function: # Str::words should return a list of words, without whitespace. my $str = "

Ops to support multidispatch

2005-06-15 Thread Chip Salzenberg
After a brief(!?) discussion with Autrijus on the subject of multimethods, it would appear that Parrot's obligation WRT their dispatch is pretty much two opcodes calling two vtable functions which must be implemented by sub-like objects: 1. is_mpd - Does this object have Multiple Personality Dis

PXPerl 5.8.7-1 released (with Pugs 6.2.7 and Parrot 0.2.1 binaries)

2005-06-15 Thread Grégoire Péan
Hi, I'm elated to announce the release of PXPerl 5.8.7-1! One of the most interesting new thing in 5.8.7-1 is perhaps the ability to select GCC (MinGW) to compile new modules, eg. downloaded from CPAN. Many other changes: + Upgraded to Perl 5.8.7 + Upgraded to Pugs 6.2.7 + Upgraded to Parrot 0

Re: [perl #36290] [PATCH] Fix 'make test' breakage with mingw32-make

2005-06-15 Thread Clement Cherlin
--- Leopold Toetsch via RT <[EMAIL PROTECTED]> wrote: > Clement Cherlin wrote: > > > ... I agree that it's a somewhat > > ugly workaround, but it was the simplest method I could think of. > Can > > you suggest an alternate solution? > > TEST_FILES in makefiles/root.in has forward slashes. During

Re: [perl #36290] [PATCH] Fix 'make test' breakage with mingw32-make

2005-06-15 Thread Leopold Toetsch
Clement Cherlin wrote: ... I agree that it's a somewhat ugly workaround, but it was the simplest method I could think of. Can you suggest an alternate solution? TEST_FILES in makefiles/root.in has forward slashes. During creation of the Makefile these get somewhere converted to backslashes. T

Re: [perl #36290] [PATCH] Fix 'make test' breakage with mingw32-make

2005-06-15 Thread Clement Cherlin
--- Leopold Toetsch via RT <[EMAIL PROTECTED]> wrote: > Clement Cherlin wrote: > > --- Leopold Toetsch via RT <[EMAIL PROTECTED]> > wrote: > > >>Doesn't a) perl take forward slashes too and b) harness do the glob > > >>anyway? If the shell globs the test args, we'll run into > commandline > >>l

Re: var_args -> Pair

2005-06-15 Thread Chip Salzenberg
On Wed, Jun 15, 2005 at 11:57:21AM +0200, Leopold Toetsch wrote: > There is sill no PIR support for it, but you can use a hand-crafted call > sequence for now. The plan is to make the .pcc_* and associated directives work, with added knobs and buttons to request the new features. Of course you w

[r8366] var_args ...

2005-06-15 Thread Leopold Toetsch
The new opcodes[1] should now be usable for plain function calls (no NCI yet) and returns. Type conversions (auto-boxing) flattening and slurping is implemented. Please have a look at the tests in t/op/calling.t and give it a try. There is sill no PIR support for it, but you can use a hand-cra

Re: [perl #36290] [PATCH] Fix 'make test' breakage with mingw32-make

2005-06-15 Thread Leopold Toetsch
Clement Cherlin wrote: --- Leopold Toetsch via RT <[EMAIL PROTECTED]> wrote: Doesn't a) perl take forward slashes too and b) harness do the glob anyway? If the shell globs the test args, we'll run into commandline length issues sooner or later. leo Perl will accept both forward and backw

Re: [perl #36290] [PATCH] Fix 'make test' breakage with mingw32-make

2005-06-15 Thread Clement Cherlin
--- Leopold Toetsch via RT <[EMAIL PROTECTED]> wrote: > Clement Cherlin (via RT) wrote: > > >>perl.exe t\harness --gc-debug --running-make-test > > > > t\library\*.t > > [ ... ] > > Doesn't a) perl take forward slashes too and b) harness do the glob > anyway? If the shell globs the

Re: new mailing list: perl6-general?

2005-06-15 Thread BÁRTHÁZI András
Hi Michele, Where should I ask, that what's PGE means? Yes, I know, it's Parrot Grammar Engine, and I know what it is, but a beginnner maybe not. And I think that Which makes me think that first or later it may be worth to start a FAQ for questions like these even if they're not frequently a

Re: proposal: binding with a function

2005-06-15 Thread BÁRTHÁZI András
Hi, Carl Franks wrote: : alias newlines, newline; Isn't it possible to add a Role to the relevant Class, which specifies that is 'handles' the method name you want as an alias? If it's possible, it would be fine for me in this particular case. Is it possible? Anyway, IMHO this alias fun

Re: [perl #36290] [PATCH] Fix 'make test' breakage with mingw32-make

2005-06-15 Thread Leopold Toetsch
Clement Cherlin (via RT) wrote: perl.exe t\harness --gc-debug --running-make-test t\library\*.t [ ... ] Doesn't a) perl take forward slashes too and b) harness do the glob anyway? If the shell globs the test args, we'll run into commandline length issues sooner or later. leo

Re: [perl #36286] [PATCH] Turn off optimization on another large file.

2005-06-15 Thread Leopold Toetsch
Andy Dougherty (via RT) wrote: # New Ticket Created by Andy Dougherty # Please include the string: [perl #36286] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=36286 > My system couldn't handle an optimized compile of op

Re: [PATCH] [perl #36269] Alignment problems with doubles on SPARC.

2005-06-15 Thread Leopold Toetsch
Andy Dougherty wrote: On Mon, 13 Jun 2005, Andy Dougherty wrote: On Mon, 13 Jun 2005, Leopold Toetsch via RT wrote: Chip Salzenberg wrote: On Mon, Jun 13, 2005 at 02:57:09PM -0400, Andy Dougherty wrote: Yes. The compiler does the right thing. It sensibly reports The following pat

Re: State of Design Documents

2005-06-15 Thread Christian Renz
Not really, except insofar as we've talked about compact classes of native types working like C structs. There are lots of nitty things we can fix with pack/unpack, but the basic underlying problem is that pack/unpack are defined operationally rather than declaratively. I think it's worth takin

[perl #36290] [PATCH] Fix 'make test' breakage with mingw32-make

2005-06-15 Thread via RT
# New Ticket Created by Clement Cherlin # Please include the string: [perl #36290] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=36290 > François PERRAD wrote: > > Please, revert this patch (r8298) > With MinGW & cmd.exe

Re: Pondering the unification of @MULTI and get_params

2005-06-15 Thread Leopold Toetsch
Bob Rogers wrote: From: Leopold Toetsch <[EMAIL PROTECTED]> Yep - that's still doable, but not in the middle, which looks insane to me anyway. Not always, seems to me. Sometimes, in order to implement a defined protocol (e.g. for a callback), you must accept a parameter that you do

Re: new mailing list: perl6-general?

2005-06-15 Thread Michele Dondi
On Tue, 14 Jun 2005, [iso-8859-2] BÁRTHÁZI András wrote: Where should I ask, that what's PGE means? Yes, I know, it's Parrot Grammar Engine, and I know what it is, but a beginnner maybe not. And I think that Which makes me think that first or later it may be worth to start a FAQ for questions

Re: proposal: binding with a function

2005-06-15 Thread Carl Franks
> : alias newlines, newline; Isn't it possible to add a Role to the relevant Class, which specifies that is 'handles' the method name you want as an alias? Carl