r24784 - docs/Perl6/Spec

2009-01-06 Thread pugs-commits
Author: moritz Date: 2009-01-06 11:14:50 +0100 (Tue, 06 Jan 2009) New Revision: 24784 Modified: docs/Perl6/Spec/S29-functions.pod Log: [S29] typos, thinkos and wording improvements, Brandon++, Tim++ Modified: docs/Perl6/Spec/S29-functions.pod ==

[perl #62002] Object.perl is not inherited to user-defined classes

2009-01-06 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #62002] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62002 > Due to the structurally recursive nature of C<.perl>, the fact that Rakudo r34997 doesn'

[perl #62006] Strange errors regarding protoobjects

2009-01-06 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #62006] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62006 > Rakudo r34997 exhibits a few problems related to mentioning or numifying protoobjects.

[perl #62004] Enum values aren't recognized without their namespace

2009-01-06 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #62004] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62004 > Rakudo r34997 doesn't allow enum values to be written without their namespace: $ perl6

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

2009-01-06 Thread Ovid
- Original Message > From: Jonathan Worthington > > 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

[perl #62008] .fmt and ~ on hash values differ by a final newline

2009-01-06 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #62008] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62008 > rakudo 35017: OUTPUT«1 2␤3 4␤␤» rakudo: say {1 => 2, 3 => 4}.fmt("%s\t%s") rak

[perl #62012] parses but always returns true

2009-01-06 Thread via RT
# New Ticket Created by Richard Hainsworth # Please include the string: [perl #62012] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62012 > See the following (svn revision 34915) $ perl6 > regex digit { [0..9] }; my $x='a

[perl #62010] [PATCH] fix PARROT_EXPORT visibility=default for gcc other than 4.x

2009-01-06 Thread via RT
# New Ticket Created by Donald Hunter # Please include the string: [perl #62010] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62010 > This patch fixes a problem with gcc 3.4.6 on Linux where -fvisibility=hidden is detecte

opposite of when (fewer stupid errors)

2009-01-06 Thread Richard Hainsworth
Suppose I want a 'when' clause to fire when the test is *not* met. What syntax should be used? So how would I do my $x = 'abced'; given $x { when ! // {say 'this does not contain a digit'} # this does not work } Since the ~~ operator is implied in the when, how do we get an implied !~~ op

Re: [perl #62002] Object.perl is not inherited to user-defined classes

2009-01-06 Thread Patrick R. Michaud
On Tue, Jan 06, 2009 at 02:50:07AM -0800, Carl Mäsak wrote: > Due to the structurally recursive nature of C<.perl>, the fact that > Rakudo r34997 doesn't give newly defined classes a default C<.perl> > method upon definition is very keenly felt e.g. when doing C<.perl> on > a list of instances of t

Re: [perl #62002] Object.perl is not inherited to user-defined classes

2009-01-06 Thread Carl Mäsak
Pm (>): > But if you'd like to add a temporary ".perl" method to Object > that does something more reasonable (however you define it), > that's certainly ok. masak: What about a TheClass.new(...) which sets up attributes to their current values? jnthn: you know, that's actually not half bad. :)

Re: not wanting something

2009-01-06 Thread Chas. Owens
On Tue, Jan 6, 2009 at 10:12, Patrick R. Michaud wrote: snip > Also, Perl 6 already provides a 'digit' rule by default, although > it's digits in the Unicode sense as opposed to simply the 0..9 > sequence. snip Please tell me that Perl 6 isn't going to make that same error the Perl 5.8 did. Or a

Re: returning one or several values from a routine

2009-01-06 Thread Daniel Ruoso
Em Seg, 2009-01-05 às 20:32 +0100, Moritz Lenz escreveu: > Daniel Ruoso wrote: > > would force item context in the capture, and here is the problem, as a > > capture in item context was supposed to return the invocant. > Maybe we could have a different rule for captures in scalar contexts > that do

Re: returning one or several values from a routine

2009-01-06 Thread Jon Lang
Daniel Ruoso wrote: > I've just realized we were missing some spots, so remaking the list of > possibilities > > my $a = sub s1 { return a => 1 } > my $b = sub s2 { return a => 1, b => 2 } > my $c = sub s3 { return 1, 2, 3, a => 1, b => 2 } > my $d = sub s4 { return 1 } > my $e = sub s5 { retu

Re: returning one or several values from a routine

2009-01-06 Thread Daniel Ruoso
Em Ter, 2009-01-06 às 11:28 -0800, Jon Lang escreveu: > Of course, that's only a third of the problem. What should people > expect with each of these: Hmm... I think that takes the discussion to another level, and the question is: "what does a capture returns when coerced to a context it doesn'

Re: [perl #61942] NaN !~~ NaN in Rakudo

2009-01-06 Thread Moritz Lenz
I now added a test to t/spec/S03-operators/smartmatch.t Moritz

Re: returning one or several values from a routine

2009-01-06 Thread Jon Lang
Daniel Ruoso wrote: > Hmm... I think that takes the discussion to another level, and the > question is: > > "what does a capture returns when coerced to a context it doesn't > provide a value for?" > > The easy answer would be undef, empty array and empty hash, but that > doesn't DWIM at all. > >

Re: returning one or several values from a routine

2009-01-06 Thread TSa (Thomas Sandlaß)
On Tuesday, 6. January 2009 22:01:36 Jon Lang wrote: > item($x) # Dwimmey use of item context. IIRC this is the same as $$x, right? Or does that extract the invocant slot without dwimmery? > list($x) # Dwimmey use of list context. > hash($x) # Dwimmey use of hash context. > $x._ # the Cap

Re: returning one or several values from a routine

2009-01-06 Thread Jon Lang
TSa wrote: > Jon Lang wrote: >> item($x) # Dwimmey use of item context. > > IIRC this is the same as $$x, right? Or does that > extract the invocant slot without dwimmery? Umm... good question. This is a rather nasty paradox: on the one hand, we want to be able to stack $, @, and % with capture

Re: not wanting something

2009-01-06 Thread Patrick R. Michaud
On Tue, Jan 06, 2009 at 12:42:16PM -0500, Chas. Owens wrote: > On Tue, Jan 6, 2009 at 10:12, Patrick R. Michaud wrote: > snip > > Also, Perl 6 already provides a 'digit' rule by default, although > > it's digits in the Unicode sense as opposed to simply the 0..9 > > sequence. > snip > > Please te

[perl #62024] [TODO]: implement qqx

2009-01-06 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #62024] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62024 > I know that rakudo doesn't prioritize implementation of the various quoting constructs, b

[perl #62026] Can't write to to array/hash attributes

2009-01-06 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #62026] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62026 > 22:06 <@moritz_> rakudo: class A { has @.a; method b { @.a = <1 2 3> }; };

[perl #62028] "say" with no args should be an error

2009-01-06 Thread Dave Whipp
# New Ticket Created by "Dave Whipp" # Please include the string: [perl #62028] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62028 > S16 requires that "say" (and "print") when called with no args should be a compile-time

[perl #62014] [PATCH] missing "n" in "doesn't" in docs/book/ch03_pir_basics.pod

2009-01-06 Thread Christian Sturm
# New Ticket Created by "Christian Sturm" # Please include the string: [perl #62014] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62014 > There is an missing an in the word doesn't in the Classes and Objects paragraph of

r24789 - docs/Perl6/Spec

2009-01-06 Thread pugs-commits
Author: particle Date: 2009-01-07 01:53:03 +0100 (Wed, 07 Jan 2009) New Revision: 24789 Modified: docs/Perl6/Spec/S19-commandline.pod Log: [S19] rip out option categories and services until they prove useful Modified: docs/Perl6/Spec/S19-commandline.pod

r24790 - docs/Perl6/Spec

2009-01-06 Thread pugs-commits
Author: particle Date: 2009-01-07 01:56:43 +0100 (Wed, 07 Jan 2009) New Revision: 24790 Modified: docs/Perl6/Spec/S19-commandline.pod Log: [S19] address concerns about mixing -e and -e6 Modified: docs/Perl6/Spec/S19-commandline.pod ==

[perl #62030] perl -e does not populate @*ARGS

2009-01-06 Thread mbere...@flashmail.com (via RT)
# New Ticket Created by mbere...@flashmail.com # Please include the string: [perl #62030] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62030 > Up until about mid December 2008, the Rakudo perl6 -e copied its command line

r24791 - docs/Perl6/Spec

2009-01-06 Thread pugs-commits
Author: lwall Date: 2009-01-07 02:20:43 +0100 (Wed, 07 Jan 2009) New Revision: 24791 Modified: docs/Perl6/Spec/S11-modules.pod Log: [S11] clarify the intent of the -e6 remark not to be special syntax, but a natural outcome of -e and '6;' Modified: docs/Perl6/Spec/S11-modules.pod =

Re: returning one or several values from a routine

2009-01-06 Thread Dave Whipp
Daniel Ruoso wrote: Hmm... I think that takes the discussion to another level, and the question is: "what does a capture returns when coerced to a context it doesn't provide a value for?" I'd like to take one step further, and ask what it is that introduced capture semantics in the first pl

Re: [perl #62024] [TODO]: implement qqx

2009-01-06 Thread Patrick R. Michaud
On Tue, Jan 06, 2009 at 12:11:28PM -0800, Moritz Lenz wrote: > I know that rakudo doesn't prioritize implementation of the various > quoting constructs, but there are various things that need testing > ($*OUT.say, @*ARGS (which seems to be broken atm), command line > switches, things like RT #61980

Re: [perl #62028] "say" with no args should be an error

2009-01-06 Thread Patrick R. Michaud
On Tue, Jan 06, 2009 at 01:50:06PM -0800, Dave Whipp wrote: > > S16 requires that "say" (and "print") when called with no args should > be a compile-time error. Rakudo accepts it with no error. Since S16 has been in an incomplete "draft" status for such a long time, I'd like to get confirmation f

Re: returning one or several values from a routine

2009-01-06 Thread Jon Lang
Dave Whipp wrote: > Daniel Ruoso wrote: >> Hmm... I think that takes the discussion to another level, and the >> question is: >> >> "what does a capture returns when coerced to a context it doesn't >> provide a value for?" > > I'd like to take one step further, and ask what it is that introduced >

r24792 - docs/Perl6/Spec

2009-01-06 Thread pugs-commits
Author: masak Date: 2009-01-07 06:43:05 +0100 (Wed, 07 Jan 2009) New Revision: 24792 Modified: docs/Perl6/Spec/S29-functions.pod Log: [S29] put the C function inside a list, for consistency Modified: docs/Perl6/Spec/S29-functions.pod ===

r24793 - docs/Perl6/Spec

2009-01-06 Thread pugs-commits
Author: masak Date: 2009-01-07 06:59:42 +0100 (Wed, 07 Jan 2009) New Revision: 24793 Modified: docs/Perl6/Spec/S29-functions.pod Log: [S29] added mentions of getc, print, say and printf, with references to S16 for details Modified: docs/Perl6/Spec/S29-functions.pod

r24794 - docs/Perl6/Spec

2009-01-06 Thread pugs-commits
Author: masak Date: 2009-01-07 07:00:46 +0100 (Wed, 07 Jan 2009) New Revision: 24794 Modified: docs/Perl6/Spec/S16-io.pod Log: [S16] slight disambiguation Modified: docs/Perl6/Spec/S16-io.pod === --- docs/Perl6/Spec/S16-io.pod 20

r24795 - docs/Perl6/Spec

2009-01-06 Thread pugs-commits
Author: masak Date: 2009-01-07 07:25:35 +0100 (Wed, 07 Jan 2009) New Revision: 24795 Modified: docs/Perl6/Spec/S29-functions.pod Log: [S29] added .succ/.pred for Num, Int and Bool Modified: docs/Perl6/Spec/S29-functions.pod === --