Re: proposal: binding with a function

2005-06-15 Thread BÁRTHÁZI András
Larry, You can always write a macro that does that. [...] That won't work on a method name anyway unless you do it in the dispatch class. [...] You'll have to write your own macro if you want to do that. As I understood, you wrote down, how I can workaround it with macros, and why it

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

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

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

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

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

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 = hi

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 that

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: words is wrong

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 bar

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 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 don't quite get that.

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

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,

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

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

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

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