r24807 - docs/Perl6/Spec

2009-01-07 Thread pugs-commits
Author: masak Date: 2009-01-08 07:36:06 +0100 (Thu, 08 Jan 2009) New Revision: 24807 Modified: docs/Perl6/Spec/S29-functions.pod Log: [S29] added slice and hash contextualizers, reordered item and list Modified: docs/Perl6/Spec/S29-functions.pod

r24806 - docs/Perl6/Spec

2009-01-07 Thread pugs-commits
Author: masak Date: 2009-01-08 07:15:11 +0100 (Thu, 08 Jan 2009) New Revision: 24806 Modified: docs/Perl6/Spec/S29-functions.pod Log: [S29] moved .perl and .warn from Object to Any. removed Object heading for now. Modified: docs/Perl6/Spec/S29-functions.pod

r24805 - docs/Perl6/Spec

2009-01-07 Thread pugs-commits
Author: masak Date: 2009-01-08 07:11:11 +0100 (Thu, 08 Jan 2009) New Revision: 24805 Modified: docs/Perl6/Spec/S29-functions.pod Log: [S29] multiple changes: * added Object.warn (to be moved in the next commit to Any) * added invocant colon to Object.perl (to be moved in the next commit to Any)

Pairs and .pairs

2009-01-07 Thread Patrick R. Michaud
I have some questions about Pair objects. Synopsis 2 currently shows Pairs as being immutable, but there are a few places in the test suite that expect to modify the value component of a Pair, so I'm asking here: (1) If I use .pairs to obtain a list of Pairs from an array or hash, are the value

Re: Writing to an iterator

2009-01-07 Thread Timothy S. Nelson
On Wed, 7 Jan 2009, Jon Lang wrote: I was just reading through S07, and it occurred to me that if one wanted to, one could handle stacks and queues as iterators, rather than by push/pop/shift/unshift of a list. All you'd have to do would be to create a stack or queue class with a private list a

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

2009-01-07 Thread Patrick R. Michaud
On Wed, Jan 07, 2009 at 05:53:40PM -0800, Larry Wall wrote: > And it's pretty easy to use any of > > say ''; > say (); > ''.say; > print "\n"; > > to be clearer about the intent. So my inclination is to outlaw > bare "say" as well, as an aid to catching a common p5thinko that > s

r24803 - docs/Perl6/Spec

2009-01-07 Thread pugs-commits
Author: particle Date: 2009-01-08 03:19:31 +0100 (Thu, 08 Jan 2009) New Revision: 24803 Modified: docs/Perl6/Spec/S19-commandline.pod Log: [S19] add a sentence on unchanged syntax features, fix some pod formatting errors, and remember to update document metadata Modified: docs/Perl6/Spec/S19-

r24802 - docs/Perl6/Spec

2009-01-07 Thread pugs-commits
Author: particle Date: 2009-01-08 03:08:39 +0100 (Thu, 08 Jan 2009) New Revision: 24802 Modified: docs/Perl6/Spec/S19-commandline.pod Log: [S19] fix pod-o Modified: docs/Perl6/Spec/S19-commandline.pod === --- docs/Perl6/Spec/S19-c

r24801 - docs/Perl6/Spec

2009-01-07 Thread pugs-commits
Author: particle Date: 2009-01-08 02:57:51 +0100 (Thu, 08 Jan 2009) New Revision: 24801 Modified: docs/Perl6/Spec/S19-commandline.pod Log: [S19] preliminary musings on metasyntactic options Modified: docs/Perl6/Spec/S19-commandline.pod ==

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

2009-01-07 Thread Larry Wall
On Tue, Jan 06, 2009 at 08:39:00PM -0600, Patrick R. Michaud wrote: : 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 a

[perl #62046] Error when defining a class method called 'list'

2009-01-07 Thread via RT
# New Ticket Created by Cory Spencer # Please include the string: [perl #62046] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62046 > When defining a class as follows: class Foo { method list { say "bar"

Re: returning one or several values from a routine

2009-01-07 Thread Dave Whipp
Jon Lang wrote: I believe that we already have a signature creation operator, namely ":( @paramlist )". Yes, sorry, I missed that. > ... Regardless, the magic that makes this work would be the ability to assign a flat list of values to a signature. Is this wise? We already have the abilit

r24799 - docs/Perl6/Spec

2009-01-07 Thread pugs-commits
Author: particle Date: 2009-01-07 20:53:32 +0100 (Wed, 07 Jan 2009) New Revision: 24799 Modified: docs/Perl6/Spec/S19-commandline.pod Log: [S19] describe unchanged syntax Modified: docs/Perl6/Spec/S19-commandline.pod === --- docs/

r24798 - docs/Perl6/Spec

2009-01-07 Thread pugs-commits
Author: particle Date: 2009-01-07 20:42:33 +0100 (Wed, 07 Jan 2009) New Revision: 24798 Modified: docs/Perl6/Spec/S19-commandline.pod Log: [S19] flesh out most of option reference Modified: docs/Perl6/Spec/S19-commandline.pod ===

Re: opposite of when (fewer stupid errors)

2009-01-07 Thread Ted Zlatanov
On Tue, 06 Jan 2009 16:48:47 +0300 Richard Hainsworth wrote: RH> Suppose I want a 'when' clause to fire when the test is *not* RH> met. What syntax should be used? Maybe the parser can be smart enough to recognize this: given $x { ! // {say 'this does not contain a digit'} } Other suggest

Writing to an iterator

2009-01-07 Thread Jon Lang
I was just reading through S07, and it occurred to me that if one wanted to, one could handle stacks and queues as iterators, rather than by push/pop/shift/unshift of a list. All you'd have to do would be to create a stack or queue class with a private list attribute and methods for reading from a

Re: rfc: The values of a junction

2009-01-07 Thread dpuu
On Jan 5, 2:24 pm, d...@dave.whipp.name (Dave Whipp) wrote: > Handling all the variations around this (including compound junctions) > will be quite tricky to implement, even if we did have introspection for > junctions. Incidentally, we'd also need introspection of arrays, to extract the infinit

[svn:parrot-pdd] r35128 - trunk/docs/pdds

2009-01-07 Thread jonathan
Author: jonathan Date: Wed Jan 7 08:01:00 2009 New Revision: 35128 Modified: trunk/docs/pdds/pdd23_exceptions.pod Log: [pdd] Remove unimplemented notes for annotations method on Exception, and add documentation for backtrace method. Modified: trunk/docs/pdds/pdd23_exceptions.pod ===

Fwd: [perl #58704] [BUG] t/src/compiler.t failures with VC++ / Win32

2009-01-07 Thread Tim Heckman
Begin forwarded message: From: Tim Heckman Date: January 5, 2009 11:52:47 PM EST To: Reini Urban Cc: Ron Blaschke , NotFound , parrot-...@perl.org, bugs- bitbuc...@netlabs.develooper.com Subject: Re: [perl #58704] [BUG] t/src/compiler.t failures with VC+ + / Win32 Reini Urban wrote:

Re: opposite of when (fewer stupid errors)

2009-01-07 Thread Gaal Yahas
On Tue, Jan 6, 2009 at 3:48 PM, Richard Hainsworth wrote: > 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

[svn:parrot-pdd] r35089 - in trunk: compilers/imcc docs/pdds include/parrot src src/atomic src/pmc t/op

2009-01-07 Thread infinoid
Author: infinoid Date: Tue Jan 6 21:35:06 2009 New Revision: 35089 Modified: trunk/docs/pdds/pdd13_bytecode.pod trunk/docs/pdds/pdd19_pir.pod Changes in other areas also in this revision: Added: trunk/t/op/annotate.t Modified: trunk/compilers/imcc/imcc.l trunk/compilers/imcc/imcc.

Str.warn?

2009-01-07 Thread Carl Mäsak
I'm about to add C to S29. Found this in S16: ] =item warn LIST ] ] =item Str.warn ] ] Prints a warning just like Perl 5, except that it is always sent to ] the object in $*DEFERR, which is just standard error ($*ERR). First off, shouldn't that be C or something similar? I suppose strings will be

r24796 - docs/Perl6/Spec

2009-01-07 Thread pugs-commits
Author: masak Date: 2009-01-07 09:34:18 +0100 (Wed, 07 Jan 2009) New Revision: 24796 Modified: docs/Perl6/Spec/S29-functions.pod Log: [S29] added any, all, one and none as subs and methods on List and Hash Modified: docs/Perl6/Spec/S29-functions.pod