Re: .method == $self.method or $_.method?

2005-04-04 Thread Thomas Sandlaß
HaloO, I'll just use what Paul Seamons wrote: Consider: method foo { .do_one_thing .and_another_thing map { $_.do_something_with( .bar ) } .items; # .bar worked on the invocant - not the items .and_the_last_thing } because I don't have to invent

Re: identity tests and comparing two references

2005-04-04 Thread Thomas Sandlaß
Juerd wrote: my $four := three; Assuming you meant $three instead of three. Indeed. Sorry. my $five = 5; $four = 4; # $one == 4 now? No, $four (and thus $three, which it is bound to) is now 4. $three is a reference, which is a value, which is now *replaced* with the new value. OK. Then you need

Re: identity tests and comparing two references

2005-04-04 Thread Juerd
Thomas Sandlaß skribis 2005-04-04 18:50 (+0200): In particular what does infix=Scalar of Ref of Ref of Int,Int do? Depends. What does it mean? :) Specifically, what is infix, what is =? 'Scalar of Ref of Any' without dispatching to 'Ref of Int'. That means References and aliasing should have

:=: (OT)

2005-04-04 Thread Juerd
For some reason, I keep typing :=: instead of =:=. Do other people experience similar typo-habits with new operators? One of my other Perl 6 typo-habits is ^H^Hargh!^H^H^H^H^H«, but that's because I like how « and » look, but can't yet easily type them. Juerd --

[S29] pick on other things than junctions

2005-04-04 Thread Ingo Blechschmidt
Hi, I remembered Damian saying that pick does not only work on junctions, but on arrays and hashes, too (and I even found his posting :): http://groups.google.com/groups?selm=420DB295.3000902%40conway.org). Are the following assumptions correct? my $junc = 1|2|3; print $junc.pick; # 1, 2,

Re: [S29] pick on other things than junctions

2005-04-04 Thread Rod Adams
Ingo Blechschmidt wrote: I remembered Damian saying that pick does not only work on junctions, but on arrays and hashes, too (and I even found his posting :): http://groups.google.com/groups?selm=420DB295.3000902%40conway.org). Are the following assumptions correct? my $junc = 1|2|3; print

Re: :=: (OT)

2005-04-04 Thread Aaron Sherman
On Mon, 2005-04-04 at 15:07, Sam Vilain wrote: «»«»«»«»«»«»«»«»«»«»«»«»«»! :-þ an excerpt from my xkb config... I think we've been over this ground before, but if you use EMACS, you'll find this handy: http://www.cs.tut.fi/~jkorpela/emacs-iso.html Of course, some of the sequences used

Re: :=: (OT)

2005-04-04 Thread Larry Wall
On Mon, Apr 04, 2005 at 03:55:23PM -0400, Aaron Sherman wrote: : but if you use vim or emacs inside a terminal, you'll want to make sure : it's in iso-latin-1 mode (e.g. in gnome-terminal, you have to use the : menu: Terminal-Set Character Encoding) If you going to that trouble, at least try your

Re: :=: (OT)

2005-04-04 Thread Aaron Sherman
On Mon, 2005-04-04 at 16:41, Larry Wall wrote: On Mon, Apr 04, 2005 at 03:55:23PM -0400, Aaron Sherman wrote: : but if you use vim or emacs inside a terminal, you'll want to make sure : it's in iso-latin-1 mode (e.g. in gnome-terminal, you have to use the : menu: Terminal-Set Character

Re: [S29] pick on other things than junctions

2005-04-04 Thread Trey Harris
In a message dated Mon, 4 Apr 2005, Ingo Blechschmidt writes: What does pick return on hashes? Does it return a random value or a random pair? (I suppose returning a pair is more useful.) I'd assume in all cases that pick returns an *alias*, and in the case of hashes, an alias to the pair: #

Re: :=: (OT)

2005-04-04 Thread Mark Reed
:set encoding=utf8 :set fileencoding=utf8 The first controls the display, the second file saves. Vim has to have been compiled with multibyte support, though. From: Aaron Sherman [EMAIL PROTECTED] Date: Mon, 4 Apr 2005 17:01:58 -0400 To: Larry Wall [EMAIL PROTECTED] Cc: Perl6 Language List

is flattening the word to use when describing lazy lists?

2005-04-04 Thread Terrence Brannon
A Perl 5 user thinks of flattening a data structure as taking something which is nested and linearizing it. FOR EXAMPLE: use Data::Hash::Flatten; # NESTED DATA my $a = { bill = { '5/27/96' = { 'a.dat' = 1, 'b.txt' = 2, 'c.lsp' = 3 } }, jimm = { '6/22/98' = { 'x.prl' = 9,

Second use of flattening

2005-04-04 Thread Terrence Brannon
The first discussion of flattening had to do with a list of data being flattened into an array. Further down we see another different use of the word flattening : quote src=http://dev.perl.org/perl6/synopsis/S06.html section=Flattening lists The unary prefix operator *

Re: [S29] pick on other things than junctions

2005-04-04 Thread Trey Harris
I'd assume you'd get an *alias* to a random pair: # Test error-correction for 1..$entropy_threshhold { %hash.pick.value = rand $scribble_factor; } Trey In a message dated Mon, 4 Apr 2005, Ingo Blechschmidt writes: Hi, I remembered Damian saying that pick does not only work on

Re: [S29] pick on other things than junctions

2005-04-04 Thread Trey Harris
In a message dated Mon, 4 Apr 2005, Ingo Blechschmidt writes: What does pick return on hashes? Does it return a random value or a random pair? (I suppose returning a pair is more useful.) I'd assume in all cases that pick returns an *alias*, and in the case of hashes, an alias to the pair: #

Re: [S29] pick on other things than junctions

2005-04-04 Thread Trey Harris
Yikes. Sorry about the ressends... my email client kept dying and I thought the mail was lost. Guess not. :-) Trey In a message dated Mon, 4 Apr 2005, Trey Harris writes: In a message dated Mon, 4 Apr 2005, Ingo Blechschmidt writes: What does pick return on hashes? Does it return a random

Re: Second use of flattening

2005-04-04 Thread Juerd
Terrence Brannon skribis 2005-04-04 18:45 (+): So, to avoid confusion with the common understanding of flattening in Perl, perhaps it should be called spreading or distributing. I agree. Likewise, slurping is probably best explained as collecting. Juerd --

Re: Second use of flattening

2005-04-04 Thread Andrew Rodland
On Monday 04 April 2005 06:34 pm, Juerd wrote: Terrence Brannon skribis 2005-04-04 18:45 (+): So, to avoid confusion with the common understanding of flattening in Perl, perhaps it should be called spreading or distributing. I agree. Likewise, slurping is probably best explained as