[perl #61488] Something is wrong with inheritance in Rakudo

2008-12-18 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #61488] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61488 > The below two programs should work the same, IMHO. rakudo: class A {}; class B is A {

[perl #61486] Undefs shouldn't stringify to the protoobject type name

2008-12-18 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #61486] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61486 > rakudo: my Int $a; say $a rakudo 34077: OUTPUT[Int␤] thats a bit odd indeed. I woul

Re: Support for ensuring invariants from one loop iteration to the next?

2008-12-18 Thread Jon Lang
Aristotle Pagaltzis wrote: > And it says exactly what it's supposed to say in the absolutely > most straightforward manner possible. The order of execution is > crystal clear, the intent behind the loop completely explicit. If it works for you, great! Personally, it doesn't strike me as being as

Re: Support for ensuring invariants from one loop iteration to the next?

2008-12-18 Thread Larry Wall
On Fri, Dec 19, 2008 at 01:47:08AM +0100, Aristotle Pagaltzis wrote: : And I just realised how to best do that in Perl 5: : : goto INVARIANT; : : while ( @stuff ) { : $_->do_something( ++$i ) for @stuff; : : INVARIANT: : @stuff = grep { $_->valid } @stuff; : }

Re: Support for ensuring invariants from one loop iteration to the next?

2008-12-18 Thread Aristotle Pagaltzis
* David Green [2008-12-18 19:45]: > Well, I prefer a built-in counter like that, but I thought the > point was that you wanted some kind of block or something that > could be syntactically distinct? No, that would only be a means to the end. That end is simply to not repeat myself in writing hone

Re: 6PAN Spec question

2008-12-18 Thread Timothy S. Nelson
On Fri, 19 Dec 2008, Timothy S. Nelson wrote: Are there any objections if I refactor the current S22 into 3 parts, and retain the .jib files stuff in the current S22 (renamed to S22-package-format.pod), a document containing "what S22 said about CPAN6" (which we could then donate to the cpan6

r24478 - docs/Perl6/Spec

2008-12-18 Thread pugs-commits
Author: particle Date: 2008-12-19 01:08:34 +0100 (Fri, 19 Dec 2008) New Revision: 24478 Modified: docs/Perl6/Spec/S19-commandline.pod Log: [spec] ideas on run-time system option and environment variables; minor updates and corrections Modified: docs/Perl6/Spec/S19-commandline.pod

r24477 - docs/Perl6/Spec

2008-12-18 Thread pugs-commits
Author: wayland Date: 2008-12-19 01:07:24 +0100 (Fri, 19 Dec 2008) New Revision: 24477 Modified: docs/Perl6/Spec/S22-package-format.pod Log: Removed stuff about repositories and build and install software. Modified: docs/Perl6/Spec/S22-package-format.pod

r24475 - docs/Perl6/Spec

2008-12-18 Thread pugs-commits
Author: particle Date: 2008-12-19 01:05:41 +0100 (Fri, 19 Dec 2008) New Revision: 24475 Modified: docs/Perl6/Spec/S06-routines.pod Log: [spec] whitespace after commas is not allowed when passing multiple values to a command-line option Modified: docs/Perl6/Spec/S06-routines.pod ==

Re: 6PAN Spec question

2008-12-18 Thread Timothy S. Nelson
On Thu, 18 Dec 2008, Daniel Ruoso wrote: Em Qui, 2008-12-18 às 13:08 +1100, Timothy S. Nelson escreveu: My question is, what sort of information actually belongs in a final version of the 6PAN spec? I'm assuming it will at least include 6PAN Package format (layout, metadata, etc), and

CPAN6 vs. 6PAN (was: Re: 6PAN Spec question)

2008-12-18 Thread Timothy S. Nelson
Mark, am I right in putting it like this? 6PAN: - Perl6 package format - Client-side part of "CPAN" CPAN6: - Server-side part of "CPAN" (with more stuff) Is that how you see it? :) -

r24474 - docs/Perl6/Spec

2008-12-18 Thread pugs-commits
Author: lwall Date: 2008-12-18 22:20:36 +0100 (Thu, 18 Dec 2008) New Revision: 24474 Modified: docs/Perl6/Spec/S12-objects.pod docs/Perl6/Spec/S29-functions.pod Log: [Spec] redefine WHAT to stringify to typename plus '()' Modified: docs/Perl6/Spec/S12-objects.pod ==

Re: how to call Grammars correctly?

2008-12-18 Thread Andy_Bach
>> So, I try to use that way: >> >> grammar G { >> token TOP { ^ + $ }; >> token foo { ':' ? }; >> token bar { \w }; >> }; >> >> ":a:b:c" ~~ //; >> >> say $/; >> say $/; #Use of uninitialized value >> say $_ for $/; # Use of uninitialized value > > Try $/ Or even $/ (haven't tried it,

[perl #61480] Rakudo shouldn't die on unrecognized initializers to constructors

2008-12-18 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #61480] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61480 > rakudo: class Base { has $.foo }; class Deriving is Base {}; say Deriving.new( :foo(5)

[perl #61478] Rakudo should recognize attributes from a base class without explicit syntax in constructor

2008-12-18 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #61478] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61478 > rakudo: class Base { has $.foo }; class Deriving is Base {}; say Deriving.new( :foo(5)

Re: how to call Grammars correctly?

2008-12-18 Thread Moritz Lenz
Vasily Chekalkin wrote: > Илья wrote: >> Hi, >> >> PM> if the rule is called correctly it appears to work fine: >> >> PM> if 'foo' ~~ // >> >> So, I try to use that way: >> >> grammar G { >> token TOP { ^ + $ }; >> token foo { ':' ? }; >> token bar { \w }; >> }; >> >> ":a:b:c" ~~ /

Re: Support for ensuring invariants from one loop iteration to the next?

2008-12-18 Thread David Green
On 2008-Dec-17, at 5:15 pm, Aristotle Pagaltzis wrote: The way Template Toolkit solves this is far better: the loop body gets access to an iterator object which can be queried for the count of iterations so far and whether this is the first or last iteration. Well, I prefer a built-in counter l

r24472 - docs/Perl6/Spec

2008-12-18 Thread pugs-commits
Author: ruoso Date: 2008-12-18 19:26:20 +0100 (Thu, 18 Dec 2008) New Revision: 24472 Modified: docs/Perl6/Spec/S11-modules.pod Log: [spec] Foo::Bar::.EXPORTALL instead of Foo::Bar.EXPORTALL Modified: docs/Perl6/Spec/S11-modules.pod ==

Re: [perl #61440] Rakudo complains about the wrong thing when matching * ~~ 1

2008-12-18 Thread Carl Mäsak
jerry (>): > 1 ~~ * (not mentioned in the original ticket) feels like it should > always return Bool::True. > > is that accurate? Yes, and it does already. // Carl

Re: 6PAN Spec question

2008-12-18 Thread Mark Overmeer
* jerry gay (jerry@gmail.com) [081218 14:01]: > > If you understand my explanation of CPAN6, then you certainly must be > > ware that 6PAN and CPAN6 have nothing to do with each other. Please do > > not use them in combination. It is as silly as saying TCP/Linux > there's a difference? that

Re: [perl #61440] Rakudo complains about the wrong thing when matching * ~~ 1

2008-12-18 Thread jerry gay
On Wed, Dec 17, 2008 at 12:36, via RT Carl Mäsak wrote: > # New Ticket Created by "Carl Mäsak" > # Please include the string: [perl #61440] > # in the subject line of all future correspondence about this issue. > # http://rt.perl.org/rt3/Ticket/Display.html?id=61440 > > > > rakudo: * ~~ 1 > ra

Re: Perl6's RE(P)L

2008-12-18 Thread jerry gay
On Wed, Dec 17, 2008 at 11:51, Moritz Lenz wrote: >> Since Perl 5 has no REPL, I'm not sure where such a spec would go. S20, >> maybe, since the debugger is the closest thing? > > or maybe S19, because it defines the console interface to the rest of > the world. Or just pick a not-yet-used number

Re: 6PAN Spec question

2008-12-18 Thread jerry gay
On Thu, Dec 18, 2008 at 05:45, Mark Overmeer wrote: > * Daniel Ruoso (dan...@ruoso.com) [081218 13:39]: >> Em Qui, 2008-12-18 às 13:08 +1100, Timothy S. Nelson escreveu: >> > My question is, what sort of information actually belongs in a final >> > version of the 6PAN spec? I'm assuming it wi

Re: 6PAN Spec question

2008-12-18 Thread Mark Overmeer
* Daniel Ruoso (dan...@ruoso.com) [081218 13:39]: > Em Qui, 2008-12-18 às 13:08 +1100, Timothy S. Nelson escreveu: > > My question is, what sort of information actually belongs in a final > > version of the 6PAN spec? I'm assuming it will at least include 6PAN > > Package > > format (layout

Re: 6PAN Spec question

2008-12-18 Thread Daniel Ruoso
Em Qui, 2008-12-18 às 13:08 +1100, Timothy S. Nelson escreveu: > My question is, what sort of information actually belongs in a final > version of the 6PAN spec? I'm assuming it will at least include 6PAN Package > format (layout, metadata, etc), and I'd suggest that it also include the >

Re: 6PAN idea

2008-12-18 Thread Daniel Ruoso
Em Qui, 2008-12-18 às 11:38 +0100, Mark Overmeer escreveu: > In the current state of affairs, CPAN is limited to Perl5 and strongely > entangled by Perl5 install tools. Do we want to have people install > Perl5 on their (maybe small) machine before they can install Perl6 stuff? > Rpm-tools and deb

Re: 6PAN idea

2008-12-18 Thread Mark Overmeer
* Daniel Ruoso (dan...@ruoso.com) [081217 13:19]: > Em Qua, 2008-12-17 às 23:35 +1100, Timothy S. Nelson escreveu: > > On Wed, 17 Dec 2008, Daniel Ruoso wrote: > > > Em Qua, 2008-12-17 às 15:00 +1100, Timothy S. Nelson escreveu: > > >> My basic assumption is that there's going to be some kind of pa

Re: how to call Grammars correctly?

2008-12-18 Thread Vasily Chekalkin
Илья wrote: Hi, PM> if the rule is called correctly it appears to work fine: PM> if 'foo' ~~ // So, I try to use that way: grammar G { token TOP { ^ + $ }; token foo { ':' ? }; token bar { \w }; }; ":a:b:c" ~~ //; say $/; say $/; #Use of uninitialized value say $_ for $/; # Use

[Parrot] New comment on Parrot 0.8.2 "Feliz Loro" Released!.

2008-12-18 Thread samdc
samdc has left a new comment on your post "Parrot 0.8.2 "Feliz Loro" Released!": I wrote a post about my install experience here: http://samdelacruz.blogspot.com/2008/12/want-to-try-perl6-heres-how-to-get.html Posted by samdc to Parrot at December 17, 2008 2:26 PM

[perl #61442] Rakudo cannot match enum values against their enum type

2008-12-18 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #61442] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61442 > rakudo: enum Test; say a ~~ Test rakudo 34047: OUTPUT[Null PMC access in isa() [...]

[Parrot] New comment on Parrot 0.8.2 "Feliz Loro" Released!.

2008-12-18 Thread samdc
samdc has left a new comment on your post "Parrot 0.8.2 "Feliz Loro" Released!": I wrote a post about my install experience here: http://samdelacruz.blogspot.com/2008/12/want-to-try-perl6-heres-how-to-get.html Posted by samdc to Parrot at December 17, 2008 2:28 PM

[perl #61440] Rakudo complains about the wrong thing when matching * ~~ 1

2008-12-18 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #61440] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61440 > rakudo: * ~~ 1 rakudo 34042: OUTPUT[get_number() not implemented in class 'Whatever' [

[perl #61444] Rakudo allows declaring an enum called 'Object'

2008-12-18 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #61444] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61444 > <[particle]> rakudo: enum Object; say Object::Failure; [particle]: shouldn't defining a

[Parrot] New comment on Parrot 0.8.2 "Feliz Loro" Released!.

2008-12-18 Thread samdc
samdc has left a new comment on your post "Parrot 0.8.2 "Feliz Loro" Released!": ok, I searched and found this. Solution is to create a batch file instead as follows: @echo off rem adjust the path below to suit your environment set PARROT_ROOTDIR=c:\parrot-0.8.2 %PARROT_ROOTDIR%\bin\parrot.exe %P

[perl #61454] Rakudo complains about hypers when matching some list with whatever stars in them

2008-12-18 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #61454] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61454 > rakudo: say (3) ~~ (*,3,*) rakudo 34053: OUTPUT[Non-dwimmy hyperoperator cannot be use

[perl #61452] Rakudo doesn't treat several whatever stars in a row correctly in a list smartmatch

2008-12-18 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #61452] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61452 > rakudo: say (1,2,3) ~~ (1,*,*,3) rakudo 34053: OUTPUT[0␤] Hmm. jnthn: what do you th

[perl #61446] Rakudo dies when trying to define an enum with zero elements

2008-12-18 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #61446] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61446 > rakudo: enum B <> rakudo 34050: RESULT[Null PMC access in find_method() [...] hoho!

[Parrot] New comment on Parrot 0.8.2 "Feliz Loro" Released!.

2008-12-18 Thread samdc
samdc has left a new comment on your post "Parrot 0.8.2 "Feliz Loro" Released!": I installed it on my Windows XP machine. I want to try Perl6, but making the binary, I get this error: C:\parrot-0.8.2\bin>pbc_to_exe.exe "C:\parrot-0.8.2\languages\perl6\perl6.pbc" Unable to open filehandle current

Re: Perl6's RE(P)L

2008-12-18 Thread Moritz Lenz
Mark J. Reed wrote: > Following up to a bug report, Mr Lenz wrote: > > Another detail: if i do this in the REPL, it works fine, until I close >> the REPL - then I get the same backtrace as before. >> > > ...except that this is a Rakudo bug, and Rakudo doesn't have a REPL. BTW there's a patch fo