Re: Do slurpy parameters auto-flatten arrays?

2005-08-03 Thread Piers Cawley
Luke Palmer <[EMAIL PROTECTED]> writes: > On 7/26/05, Ingo Blechschmidt <[EMAIL PROTECTED]> wrote: >> Hi, >> >> are the following assumptions correct? >> >> sub foo ([EMAIL PROTECTED]) { @args[0] } >> >> say ~foo("a", "b", "c"); # "a" > > Yep. > >> my @array = ; >> say ~foo(@array);

Re: Exposing the Garbage Collector (Iterating the live set)

2005-08-03 Thread Piers Cawley
Luke Palmer <[EMAIL PROTECTED]> writes: > On 7/26/05, "TSa (Thomas Sandlaß)" <[EMAIL PROTECTED]> wrote: >> Piers Cawley wrote: >> > I would like to be able to iterate over all the >> > objects in the live set. >> >> My Idea actually is to embedd that into the namespace syntax. >> The idea is that

Re: Elimination of Item|Pair and Any|Junction

2005-08-03 Thread Piers Cawley
Autrijus Tang <[EMAIL PROTECTED]> writes: > On Fri, Jul 22, 2005 at 03:40:34PM -0700, Larry Wall wrote: >> I dunno. I'm inclined to say that it should default to Item|Pair, and >> let people say Any explicitly if they really want to suppress autothreading. >> Otherwise conditionals and switches a

Re: Do slurpy parameters auto-flatten arrays?

2005-08-03 Thread Aankhen
On 8/3/05, Piers Cawley <[EMAIL PROTECTED]> wrote: > So how *do* I pass an unflattened array to a function with a slurpy parameter? Good question. I would have thought that one of the major gains from turning arrays and hashes into references in scalar context is the ability to specify an unflatt

This week's summary

2005-08-03 Thread The Perl 6 Summarizer
The Perl 6 Summary for the week ending 2005-08-02 In case you were wondering, Darwin ports didn't work it's magic and I still don't have a working Haskell compiler. Thank Juerd for feather, even if I did have to turn my laptop upside down to read the MOTD. Rot-180: oN hes +snf This

What role for exceptional types?

2005-08-03 Thread Nigel Hamilton
I've been reading the Perl6 "type" and method dispatch discussions with some fear and trepidation. Just following the linear flow of control through a program can sometimes be a mind bend. The type inferencing and dispatch system for Perl6 seems very funky. Throw in some autothreading and Junc

Re: Do slurpy parameters auto-flatten arrays?

2005-08-03 Thread Luke Palmer
On 8/3/05, Aankhen <[EMAIL PROTECTED]> wrote: > On 8/3/05, Piers Cawley <[EMAIL PROTECTED]> wrote: > > So how *do* I pass an unflattened array to a function with a slurpy > > parameter? > > Good question. I would have thought that one of the major gains from > turning arrays and hashes into refe

Re: Eliminating &{} and *{}

2005-08-03 Thread TSa (Thomas Sandlaß)
HaloO, Autrijus Tang wrote: All this led us to think about whether (my &foo) can be merely treated the same as (my Code $foo). The mutable form will enable convenient notations such as: I think (my Code $foo) should be an error on the same reason as (my Array $foo) is an error. A $var can onl

Re: What role for exceptional types?

2005-08-03 Thread Luke Palmer
On 8/3/05, Nigel Hamilton <[EMAIL PROTECTED]> wrote: > Instead of passing the "buck" from object to object via parameter lists > and type inference (traversing OO hierarchies etc) maybe we could .. > > Model the flow of control through a program as a simple linear queue of > topic changes. A centr

If topicalization

2005-08-03 Thread Luke Palmer
I vaguely recall that we went over this already, but I forgot the conclusion if we did. In Damian and Larry's talk here at OSCON, I saw the example: if foo() -> $foo { # use $foo } How can that possibly work? If a bare closure { } is equivalent to -> ?$_ is rw { }, then the norm

Re: Do slurpy parameters auto-flatten arrays?

2005-08-03 Thread Miroslav Silovic
[EMAIL PROTECTED] wrote: So how *do* I pass an unflattened array to a function with a slurpy parameter? I don't ~~ @larry, but my guess(es) would be bar([EMAIL PROTECTED]) or bar([EMAIL PROTECTED]) Miro

Re: Do slurpy parameters auto-flatten arrays?

2005-08-03 Thread Piers Cawley
Luke Palmer <[EMAIL PROTECTED]> writes: > On 8/3/05, Aankhen <[EMAIL PROTECTED]> wrote: >> On 8/3/05, Piers Cawley <[EMAIL PROTECTED]> wrote: >> > So how *do* I pass an unflattened array to a function with a slurpy >> > parameter? >> >> Good question. I would have thought that one of the major

[RELEASE] WWW::Kontent 0.01

2005-08-03 Thread Brent 'Dax' Royal-Gordon
I am happy to announce the release of WWW::Kontent 0.01: File: $CPAN/authors/id/B/BR/BRENTDAX/WWW-Kontent-0.01.tar.gz Size: 27402 bytes MD5 : 1295736bac6b0ef3339998ea47b9ad61 Please note that it may take some time for the d

Re: If topicalization

2005-08-03 Thread TSa (Thomas Sandlaß)
HaloO, Luke Palmer wrote: I vaguely recall that we went over this already, but I forgot the conclusion if we did. I have a proposal about block owner and block topic pending. But I guess no one noticed it, ... In Damian and Larry's talk here at OSCON, I saw the example: if foo() -> $fo