Re: Which brackets should @a.perl use?

2009-01-05 Thread Markus Laker
Uri, On Sun, 04 Jan 2009 22:37:43 -0500, Uri Guttman wrote: > that fails with nested arrays. we don't want them to flatten. > > my $c = eval '(1, (4, 5), 3)'; > > will that work as you envision? No, but it's not what I'm proposing. A reference must Perlify as a reference, just as it does toda

Re: reporting bugs

2009-01-05 Thread Dave Whipp
Patrick R. Michaud wrote: On Sun, Jan 04, 2009 at 05:20:56PM +0300, Richard Hainsworth wrote: I posted an email to per6-all asking about how one should go about reporting bugs. That message has appeared on the list. So again: how can bugs be reported? See the "Reporting bugs" section of REA

Re: Which brackets should @a.perl use?

2009-01-05 Thread moritz
>> "m" == moritz writes: > > m> S02 says: > > m> "To get a Perlish representation of any object, use the .perl method. > Like > m> the Data::Dumper module in Perl 5, the .perl method will put quotes > around > m> strings, square brackets around list values," > > m> So according to t

Re: [perl #61928] [BUG] (undef === undef)

2009-01-05 Thread Moritz Lenz
Patrick R. Michaud wrote: > On Fri, Jan 02, 2009 at 01:52:45PM -0800, Todd Hepler wrote: >> I think this is a bug, but I'm not sure. >> >> (undef === undef) currently evaluates to false. Seem like it should be >> true. >> >> I couldn't find a test for it, so below is a patch to add one. > > Be

rfc: The values of a junction

2009-01-05 Thread Dave Whipp
I spent a fair amount of time with Rakudo over the holiday break (see http://dave.whipp.name/sw/perl6 for the writeup). I was generally impressed with both the language and its implementation. There were, unsurprisingly, a bunch of things missing. Some of these were things that are in the spec

r24769 - docs/Perl6/Spec

2009-01-05 Thread pugs-commits
Author: moritz Date: 2009-01-05 17:54:50 +0100 (Mon, 05 Jan 2009) New Revision: 24769 Modified: docs/Perl6/Spec/S29-functions.pod Log: [S29] document isa, can, does, perl and clone Modified: docs/Perl6/Spec/S29-functions.pod ===

r24768 - docs/Perl6/Spec

2009-01-05 Thread pugs-commits
Author: particle Date: 2009-01-05 17:53:12 +0100 (Mon, 05 Jan 2009) New Revision: 24768 Modified: docs/Perl6/Spec/S19-commandline.pod Log: [S19] provide rules for negated single-character options; rearrange list items for clarity Modified: docs/Perl6/Spec/S19-commandline.pod =

Re: r24769 - docs/Perl6/Spec

2009-01-05 Thread Brandon S. Allbery KF8NH
On 2009 Jan 5, at 11:54, pugs-comm...@feather.perl6.nl wrote: + our Str multi method perl (Object $o) + +Returns a perlish representation of the object, so that calling C +on the returned string reproduces the object as good as possible. My inner English teacher cringes in pain. It should b

Re: rfc: The values of a junction

2009-01-05 Thread Daniel Ruoso
Em Seg, 2009-01-05 às 07:57 -0800, Dave Whipp escreveu: >my $ace = 1 | 11; >my $seven = 7; >my @hand = $ace xx 3, $seven; >my $junc_value = [+] @hand; ## any( 10, 20, 30, 40 ) > There are a bunch of possible values in the junction. The one we care > about is the largest that is no

r24774 - docs/Perl6/Spec

2009-01-05 Thread pugs-commits
Author: particle Date: 2009-01-05 20:29:06 +0100 (Mon, 05 Jan 2009) New Revision: 24774 Modified: docs/Perl6/Spec/S19-commandline.pod Log: [S19] note behavior of clustered options with required values Modified: docs/Perl6/Spec/S19-commandline.pod ===

Re: [perl #61920] [PATCH] test division in 02-op-math.t

2009-01-05 Thread Moritz Lenz
Kyle Hasselbacher (via RT) wrote: > # New Ticket Created by "Kyle Hasselbacher" > # Please include the string: [perl #61920] > # in the subject line of all future correspondence about this issue. > # http://rt.perl.org/rt3/Ticket/Display.html?id=61920 > > > > I didn't see division in with the

Re: [perl #61836] Rakudo cannot take the minimum of undef

2009-01-05 Thread Moritz Lenz
Carl MXXsak (via RT) wrote: > # New Ticket Created by "Carl Mäsak" > # Please include the string: [perl #61836] > # in the subject line of all future correspondence about this issue. > # http://rt.perl.org/rt3/Ticket/Display.html?id=61836 > > > > Rakudo r34628: > > $ perl6 -e 'undef min 2' >

Re: [perl #61838] Rakudo allows reference to variables before their declaration

2009-01-05 Thread Moritz Lenz
Carl MXXsak (via RT) wrote: > # New Ticket Created by "Carl Mäsak" > # Please include the string: [perl #61838] > # in the subject line of all future correspondence about this issue. > # http://rt.perl.org/rt3/Ticket/Display.html?id=61838 > > > > Rakudo r34628: > > $ perl6 -e 'my $a = $b' >

Parrot Bug Summary

2009-01-05 Thread Parrot Bug Summary
Parrot Bug Summary http://rt.perl.org/rt3/NoAuth/parrot/Overview.html Generated at Mon Jan 5 14:00:01 2009 GMT --- * Numbers * New Issues * Overview of Open Issues * Ticket Status By Version * Requestors with mo

Re: [perl #61840] [TODO] min= and max= operators

2009-01-05 Thread Moritz Lenz
Carl MXXsak (via RT) wrote: > # New Ticket Created by "Carl Mäsak" > # Please include the string: [perl #61840] > # in the subject line of all future correspondence about this issue. > # http://rt.perl.org/rt3/Ticket/Display.html?id=61840 > > > > Rakudo r34628 doesn't support the assignment m

r24779 - docs/Perl6/Spec

2009-01-05 Thread pugs-commits
Author: particle Date: 2009-01-05 21:29:32 +0100 (Mon, 05 Jan 2009) New Revision: 24779 Modified: docs/Perl6/Spec/S06-routines.pod Log: [S06] add another command-line short name example; modify comment to line up visually with others Modified: docs/Perl6/Spec/S06-routines.pod

Re: r24769 - docs/Perl6/Spec

2009-01-05 Thread Tim Bunce
On Mon, Jan 05, 2009 at 05:54:50PM +0100, pugs-comm...@feather.perl6.nl wrote: > Author: moritz > Date: 2009-01-05 17:54:50 +0100 (Mon, 05 Jan 2009) > New Revision: 24769 > +=item can > + > + our Bool multi method can ($self:, Str $method) > + > +If there is a multi method of name C<$method> that

[perl #61980] [BUG] French quote hyper operators don't work with -e one liners

2009-01-05 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #61980] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61980 > Rakudo r34428: $ echo 'say <1 2> »+« <1 1>' > test.t $ ./perl6 test.t 23 $ ./perl6 -e 's

Re: reporting bugs

2009-01-05 Thread Moritz Lenz
Richard Hainsworth wrote: > s/has appeared/has NOT appeared/ > > Richard Hainsworth wrote: >> I posted an email to per6-all asking about how one should go about >> reporting bugs. That message has appeared on the list. >> That's because perl6-all is a meta list, which subscribes you to p6l, p6c

[perl #61978] [TODO] Rakudo needs a .does method in Object

2009-01-05 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #61978] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61978 > Rakudo r34428: ./perl6 -e '1.does(Int)' Method 'does' not found for invocant of class 'I

[perl #61982] [BUG] is rw/copy traits causes assignment/binding confusion

2009-01-05 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #61982] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61982 > Rakudo r34428 sub example ($x is rw) { $x = 3; my @a; @a.push($x); $x =

Re: returning one or several values from a routine

2009-01-05 Thread Moritz Lenz
Daniel Ruoso wrote: > Hi, > > As smop and mildew now support ControlExceptionReturn (see > v6/mildew/t/return_function.t), an important question raised: > > sub plural { return 1,2 } > sub singular { return 1 } > my @a = plural(); > my $b = plural(); > my @c = singular(); > my $d = singular

Re: rfc: The values of a junction

2009-01-05 Thread Dave Whipp
That doesn't solve the general problem: my $junc = any -4 .. Inf; my @domain = -Inf .. 4; my @values = @domain |==| $junc; say @values.perl >>> [ -4 .. 4 ] How do you code that using "grep"? From: Daniel Ruoso To: Dave Whipp Cc: perl6-langu...@perl

[perl #61990] [BUG] setset .WHAT returns incorrect value

2009-01-05 Thread publiustemp-perl6interna...@yahoo.com (via RT)
# New Ticket Created by publiustemp-perl6interna...@yahoo.com # Please include the string: [perl #61990] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61990 > For r35004: subset Even of Int where { not $_ % 2 }; my Ev

Re: [perl #61990] [BUG] setset .WHAT returns incorrect value

2009-01-05 Thread Jonathan Worthington
publiustemp-perl6interna...@yahoo.com (via RT) wrote: For r35004: subset Even of Int where { not $_ % 2 }; my Even $num = 2; say $num; say $num.WHAT; Output: 2 Int I'm expecting: 2 Even I think the current behaviour is correct (or at least, implemented to match my und

Re: rfc: The values of a junction

2009-01-05 Thread Dave Whipp
Daniel Ruoso wrote: my $concrete_value = max $junc_value.grep: { $^score < 21 }; In the general case, both the junction and the domain may be infinite: my @domain = -Inf .. 3; my $junc = any -4 .. Inf; my @values = @domain |==| $junc; say @values.perl "[-4..3]" Handling all the variation

[perl #61988] "$.foo" doesn't accept args

2009-01-05 Thread Dave Whipp
# New Ticket Created by "Dave Whipp" # Please include the string: [perl #61988] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61988 > rakudo: class A { method foo { say @_ }; method bar { $.foo(42) } }; A.bar raku

Re: returning one or several values from a routine

2009-01-05 Thread Jon Lang
Daniel Ruoso wrote: > > Hi, > > As smop and mildew now support ControlExceptionReturn (see > v6/mildew/t/return_function.t), an important question raised: > > sub plural { return 1,2 } > sub singular { return 1 } > my @a = plural(); > my $b = plural(); > my @c = singular(); > my $d = singular