Re: String concatentation operator

2002-11-15 Thread Larry Wall
On Thu, Nov 14, 2002 at 09:10:07PM +, Richard Proctor wrote: : On Thu 14 Nov, Michael G Schwern wrote: : > On Thu, Nov 14, 2002 at 12:19:47PM +, Andy Wardley wrote: : > > Can we overload + in Perl 6 to work as both numeric addition : > > and string concatenation, depending on the type of th

Re: Control Structures I: given

2002-11-15 Thread Timothy S. Nelson
On Fri, 15 Nov 2002, Me wrote: > > My complete knowledge comes from > > archive.develooper.com/perl6-language... > > (search for "superpositions"). > > I find google (rather than develooper's > archive/search) the best tool for most > searching of p6lang. Unfortunately even > google only goes bac

Re: Control Structures I: given

2002-11-15 Thread Me
> My complete knowledge comes from > archive.develooper.com/perl6-language... > (search for "superpositions"). I find google (rather than develooper's archive/search) the best tool for most searching of p6lang. Unfortunately even google only goes back so far, and doesn't search punctuation. Perl

Re: Hmm...

2002-11-15 Thread Austin Hastings
--- Piers Cawley <[EMAIL PROTECTED]> wrote: > Austin Hastings <[EMAIL PROTECTED]> writes: > > > --- Piers Cawley <[EMAIL PROTECTED]> wrote: > >> I wonder what would happen if you had a junction of > >> continuations. Producing something practical is left as an > exercise > >> for the interested r

Junctions and .pick

2002-11-15 Thread Buddha Buck
Hey Damian... What is the expected output of this: my $x = 0|1; my $xsum = 0; my $xmean; my $y = 0|1; my $z = $x * $y; my $zsum = 0; my $zmean; $xsum += $x.pick for 1..1000; $xmean = $xsum / 1000; print "Expected value of \$x is $xmean\n"; $zsum = $z.pick for 1..1000; $zmean =

Re: is sigil user - extensible ? Was: UTF-8 and Unicode FAQ, demos

2002-11-15 Thread Austin Hastings
--- [EMAIL PROTECTED] wrote: > e.g. > > I can force all variables starting with 'A' to be constant . > now 'A' is special sigil . > > ( can I ??? ) > ( probably this is something perl should avoid somehow ) And by extension, you can force all variables starting with 'hwpstr' to be a certain

Re: Hmm...

2002-11-15 Thread Austin Hastings
--- Piers Cawley <[EMAIL PROTECTED]> wrote: > I wonder what would happen if you had a junction of > continuations. Producing something practical is left as an exercise > for the interested reader. Isn't this effectively "paste(1)" ? That is, my $outfh = all(@input_handles); while (<$outfh>) pr

is sigil user - extensible ? Was: UTF-8 and Unicode FAQ, demos

2002-11-15 Thread fearcadi
Larry Wall <> writes: > > It would be really funny to use cent ¢, pound £, or yen ¥ as a > sigil, though... > > > C'mon, everybody's doing it! First one's free, kid... ;-) > > People who believe slippery slope arguments should never go skiing. > just (re)reading *old* threads :

Re: Control Structures II: loop

2002-11-15 Thread fearcadi
Luke Palmer writes: > > for parallel(<>, 0..Inf) -> $line, $count { > FIRST { $line //= "#!/usr/bin/perl" } > # processing... > NEXT { print STDERR "Next line...\n" } > LAST { print STDERR "Done\n" } > } > > > Also, keep in mind that that C function can be any (p

Re: Control Structures I: given

2002-11-15 Thread Timothy S. Nelson
On Thu, 14 Nov 2002, Luke Palmer wrote: > > The blocks below the given get evaluated under the following > > conditions > > > all: $falsecount == 0 > > any: $truecount > 0 > > some: $falsecount > 0 > > none: $truecount == 0 > > > > So anyway, "none" replaces the old "default" option, and the

Re: Control Structures II: loop

2002-11-15 Thread Timothy S. Nelson
On Thu, 14 Nov 2002, Luke Palmer wrote: > > Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm > > Date: Fri, 15 Nov 2002 07:37:51 +1100 (EST) > > From: "Timothy S. Nelson" <[EMAIL PROTECTED]> > > Sender: [EMAIL PROTECTED] > > X-SMTPD: qpsmtpd/0.12, http://develooper.com/code/qpsmtpd/ > > > >

Re: String concatentation operator

2002-11-15 Thread Timothy S. Nelson
On Thu, 14 Nov 2002, Ken Fox wrote: > Andy Wardley wrote: > > > Can we overload + in Perl 6 to work as both numeric addition > > and string concatenation ... > > Isn't there some nifty Unicode operator perl6 could enlist? ;) > > How about concatenating adjacent operands? ANSI C does this > with

Re: Control Structures I: given

2002-11-15 Thread Timothy S. Nelson
On Thu, 14 Nov 2002, Jonathan Scott Duff wrote: > On Fri, Nov 15, 2002 at 07:05:26AM +1100, Timothy S. Nelson wrote: > > -- > > given ($this) { > > when $that_happens { "Have a party" } > > when $that_doesnt_happen { "Sing" } > >

Hmm...

2002-11-15 Thread Piers Cawley
I wonder what would happen if you had a junction of continuations. Producing something practical is left as an exercise for the interested reader. -- Piers "It is a truth universally acknowledged that a language in possession of a rich syntax must be in need of a rewrite." -- Jan

Re: More junctions

2002-11-15 Thread Piers Cawley
Damian Conway <[EMAIL PROTECTED]> writes: > Luke Palmer asked: > >> When junctions collapse, > > Sigh, not another one of those dreadful reality TV shows: > > When animals attack > When drivers collide > When junctions collapse > > Next we'll get: > > When mailing lists exp

Re: Unifying invocant and topic naming syntax

2002-11-15 Thread fearcadi
Damian Conway writes: > Micholas Clarke asked: > > > If a subroutine explicitly needs access to its invocant's topic, what is so > > wrong with having an explicit read-write parameter in the argument list that > > the caller of the subroutine is expected to put $_ in? > > Absolutely nothin