Re: Unable to run perl 6 test under Parrot 0.2.x

2005-08-05 Thread Autrijus Tang
On Sat, Aug 06, 2005 at 01:51:17AM +0400, Andrew Shitov wrote: > > Parrot 0.2.3 "Serenity" Released! > > Possibly I'm growling again but I cannot run any Perl 6 programme with > new Parrots. > > One-liner test.p6 containing 'print "perl 6";' is compiled to test.imc and > cause an error: The REA

Unable to run perl 6 test under Parrot 0.2.x

2005-08-05 Thread Andrew Shitov
> Parrot 0.2.3 "Serenity" Released! Possibly I'm growling again but I cannot run any Perl 6 programme with new Parrots. One-liner test.p6 containing 'print "perl 6";' is compiled to test.imc and cause an error: C:\parrot-0.2.3\languages\perl6>perl perl6 test.p6 error:imcc:syntax error, unexpect

Re: $pair[0]?

2005-08-05 Thread Mark Reed
Seems like you left out the degenerate case for when you run out of pairs: sub infix: (Scalar $x, 0) { $x } On 2005-08-05 16:24, "Yuval Kogman" <[EMAIL PROTECTED]> wrote: > On Fri, Aug 05, 2005 at 11:36:16 -0700, Larry Wall wrote: > >> There's something to be said for having a way of inde

Re: $pair[0]?

2005-08-05 Thread Yuval Kogman
On Fri, Aug 05, 2005 at 11:36:16 -0700, Larry Wall wrote: > There's something to be said for having a way of indexing into that > using numeric subscripts. Certainly Lisp's extensible car/cdr notation > is the wrong way to do it, but cdddr is certainly shorter than > > $pair.value.value.valu

Re: $pair[0]?

2005-08-05 Thread Larry Wall
On Fri, Aug 05, 2005 at 12:27:53AM +0200, Ingo Blechschmidt wrote: : Hi, : : Andrew Shitov wrote: : >> say $pair[0]; # a? : > : > It looks like $pair is an arrayref while 'say ref $pair' tells 'Pair'. : : right, this is why I asked, IMHO it's bogus. Yes, for bare pairs, it's probably somew

Re: Various questions on .ref and .meta

2005-08-05 Thread Luke Palmer
On 8/5/05, Ingo Blechschmidt <[EMAIL PROTECTED]> wrote: > Hi, > > ~Str;# ""? "Str"? "Str" > ~::Str; # ""? "Str"? I don't know how :: works anymore. I'll avoid these. > ~Str.meta; # ""? (fill in please)? "Class" >

Re: Reassigning .ref and .meta? Rebinding class objects?

2005-08-05 Thread Luke Palmer
On 8/5/05, Ingo Blechschmidt <[EMAIL PROTECTED]> wrote: > Hi, > > my $str = "Hello"; > $str.ref = Int; # allowed? > $str.meta = &some_sub.meta; # allowed? I hardly think those work. Both of those require a change of implementation, which we can't do generically. So

Re: undef.chars?

2005-08-05 Thread Larry Wall
On Thu, Aug 04, 2005 at 10:48:49PM -0700, Brent 'Dax' Royal-Gordon wrote: : Luke Palmer <[EMAIL PROTECTED]> wrote: : > On 8/4/05, Ingo Blechschmidt <[EMAIL PROTECTED]> wrote: : > > my $undef = undef; : > > say $undef.chars? # 0? undef? die? : > > say chars $undef; # 0? undef? die? :

Parrot 0.2.3 "Serenity" Released!

2005-08-05 Thread Leopold Toetsch
Parrot 0.2.3 "Serenity" Released! On behalf of the Parrot team I'm proud to announce another monthly release of Parrot and I'd like to thank all involved people as well as our sponsors for supporting us. What is Parrot? Parrot is a virtual machine aimed at running Perl6 and other dynamic langua

Reassigning .ref and .meta? Rebinding class objects?

2005-08-05 Thread Ingo Blechschmidt
Hi, my $str = "Hello"; $str.ref = Int; # allowed? $str.meta = &some_sub.meta; # allowed? my $str = "Hello"; Str ::= Int; # allowed? ::Str ::= ::Int;# or is this allowed? say $str; # still "Hello"?

Various questions on .ref and .meta

2005-08-05 Thread Ingo Blechschmidt
Hi, ~Str;# ""? "Str"? ~::Str; # ""? "Str"? ~Str.meta; # ""? (fill in please)? ~::Str.meta; # ""? (fill in please)? +Str; +::Str; +Str.meta; +::Str.meta; # all errors? ?Str;