r25542 - docs/Perl6/Spec

2009-02-25 Thread pugs-commits
Author: lwall Date: 2009-02-25 09:31:28 +0100 (Wed, 25 Feb 2009) New Revision: 25542 Modified: docs/Perl6/Spec/S28-special-names.pod docs/Perl6/Spec/S29-functions.pod Log: name whackage of various sorts Modified: docs/Perl6/Spec/S28-special-names.pod ===

Re: S28 update?

2009-02-25 Thread Timothy S. Nelson
For those who missed it, these were answered by Larry in an update to the specs. - | Name: Tim Nelson | Because the Creator is,| | E-mail: wayl...@wayland.id.au| I am |

Re: @*INPLACE_AUTOSPLIT_FIELDS

2009-02-25 Thread Timothy S. Nelson
In answer to this, Larry put something in the spec that says that @F is replaced with @_ Now I'm happy :). - | Name: Tim Nelson | Because the Creator is,| | E-mail: wayl...@wayland.id.au| I

r25545 - docs/Perl6/Spec

2009-02-25 Thread pugs-commits
Author: wayland Date: 2009-02-25 13:03:29 +0100 (Wed, 25 Feb 2009) New Revision: 25545 Modified: docs/Perl6/Spec/S28-special-names.pod Log: A few minor fixes Modified: docs/Perl6/Spec/S28-special-names.pod === --- docs/Perl6/Spec

[perl #62902] Rakudo thinks that a proto-object in an attribute isn't ===-equal to its class

2009-02-25 Thread jn...@jnthn.net via RT
On Thu Jan 29 05:13:48 2009, masak wrote: > A protoobject in a normal lexical variable: > > rakudo: class A {}; my A $a; say $a === A # works > rakudo 36143: OUTPUT«1␤» > > A protoobject in an object attribute: > > rakudo: class A {}; class D { has A $!a; method foo { say $!a > === A } }; D.n

[perl #62364] [BUG] *

2009-02-25 Thread jn...@jnthn.net via RT
On Wed Jan 14 14:02:17 2009, publiustemp-perl6interna...@yahoo.com wrote: > I tried to implement "plan *" for 'no_plan' and this is the minimal > test case: > > perl6 $ perl6 -e 'my $plan = *; say $plan.isa(Whatever)' > Method 'isa' not found for invocant of class 'Whatever' > Ah yes, Whatever wa

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

2009-02-25 Thread jn...@jnthn.net via RT
On Tue Jan 06 02:51:59 2009, masak wrote: > Rakudo r34997 doesn't allow enum values to be written without their > namespace: > > $ perl6 -e 'enum Color ; my Color $c = Color::white; > say $c' > 0 > $ perl6 -e 'enum Color ; my Color $c = white'too few > arguments passed (0) - 1 params expected > [.

Re: AnyEvent

2009-02-25 Thread Leon Timmermans
On Wed, Feb 25, 2009 at 5:56 AM, Timothy S. Nelson wrote: >        Am I right in guessing that the AnyEvent stuff should go in S17 ? > I would suggest to rename that to Event (since unlike Perl 5 that name is still available in Perl 6). Leon

r25552 - docs/Perl6/Spec/S32-setting-library

2009-02-25 Thread pugs-commits
Author: moritz Date: 2009-02-25 15:03:24 +0100 (Wed, 25 Feb 2009) New Revision: 25552 Modified: docs/Perl6/Spec/S32-setting-library/Any.pod docs/Perl6/Spec/S32-setting-library/Containers.pod docs/Perl6/Spec/S32-setting-library/IO.pod docs/Perl6/Spec/S32-setting-library/Numeric.pod d

[perl #63146] [TODO] Implement (*) in the LHS of 'my' declarations

2009-02-25 Thread jn...@jnthn.net via RT
On Wed Feb 11 01:21:29 2009, masak wrote: > Larry (>): > > Actually, that would have to be (*@) in a my, since a my takes a > > signature. You can only use (*) in an ordinary list assignment: > > > > (*) = 5; > > ($a,$b,$c,*) = @values; > > Ok, since the latter two work already, I'm resc

r25555 - docs/Perl6/Spec

2009-02-25 Thread pugs-commits
Author: wayland Date: 2009-02-25 15:30:12 +0100 (Wed, 25 Feb 2009) New Revision: 2 Modified: docs/Perl6/Spec/S28-special-names.pod Log: S28: Added some more variables drawn from other documents, and added some notes about confusing bits. Modified: docs/Perl6/Spec/S28-special-names.pod

[perl #63232] Rakudo doesn't Z together mixes of elements and ranges properly

2009-02-25 Thread jn...@jnthn.net via RT
On Wed Feb 18 09:02:32 2009, ml...@physik.uni-wuerzburg.de wrote: > Vasily Chekalkin via RT wrote: > > On Sat Feb 14 08:16:28 2009, masak wrote: > >> rakudo: say "a".."c" Z "?", "a".."b"; > >> rakudo a0a390: OUTPUT«a?bab␤» > >> > >> From the last example, we see that there's a 'c' missing from th

S28 -- more profusion of confusion on my part :)

2009-02-25 Thread Timothy S. Nelson
Hi. I wrote a variable finding program. The output is below for those interested (yes, it relies on ack), but the questions the output raises are: - Does the $?TABSTOP have a special meaning, or is it just an example like $?FOO is in so many places? - Should those @?ROUTIN

[perl #63462] .parse doesn't work on many-jointed grammars

2009-02-25 Thread jn...@jnthn.net via RT
On Wed Feb 25 01:06:52 2009, masak wrote: > rakudo: grammar A::B { regex TOP { foo } }; A::B.parse("") > rakudo 7f8ba6: OUTPUT«Null PMC access in get_string() [...] > Huston, we have a problem. > * masak submits rakudobug Problem resolved in git 59fcc4e and test added to S05-grammar/parse_and_p

[perl #63442] MMD doesn't take methods of parent class into account

2009-02-25 Thread jn...@jnthn.net via RT
On Tue Feb 24 09:33:18 2009, ml...@physik.uni-wuerzburg.de wrote: > > class Foo { > multi method a($d) { > say "Any-method in Foo"; > } > } > class Bar is Foo { > multi method a(Int $d) { > say "Int-method in Bar"; > } > } > > Bar.new.a("not an Int"); > > # vim: f

[perl #63374] [BUG] Build fails with segfault while generating gen_settings.pir

2009-02-25 Thread jn...@jnthn.net via RT
On Sun Feb 22 23:38:52 2009, rooneg wrote: > On Fri, Feb 20, 2009 at 11:23 AM, perl6 via RT > wrote: > > > I'm getting a crash on OS X when trying to build rakudo. This is with > > parrot r36907 and the current version of rakudo > > (f23eda2c5251db5a90f5fdd3b587d4c234ee70e4) from github. > > No

Re: Comparing inexact values (was "Re: Temporal changes")

2009-02-25 Thread TSa
HaloO, Doug McNutt wrote: Thinking about what I actually do. . . A near equal test of a float ought to be a fractional error based on the current value of the float. $x tested for between $a*(1.0 + $errorfraction) and $a*(1.0 - $errorfraction) I strongly agree that checking relative erro

[perl #57398] Actually assigning to a read-only variable in rakudo causes parrot to segfault

2009-02-25 Thread jn...@jnthn.net via RT
On Tue Jul 29 21:49:31 2008, masak wrote: > $ svn info | grep Revi > Revision: 29869 > > $ ./perl6 -e 'sub a($x) { $x = 5 }; my $y = 7; a($y);' > Cannot assign to readonly variable > [...] > > works, but the following works but segfaults: > > $ ./perl6 -e 'sub a($x) { $x = 5 }; my $y = 7; a($y);

[perl #57396] Accessing an uninitialized value inside a sub in rakudo makes parrot segfault

2009-02-25 Thread jn...@jnthn.net via RT
On Tue Jul 29 21:40:30 2008, masak wrote: > $ ./perl6 -e 'my $x; $x.foo()' > > works, but > > $ ./perl6 -e 'sub a { my $x; $x.foo() }; a()' > Method 'foo' not found for invocant of class 'Undef' > current instr.: 'a' pc 82 (EVAL_13:42) > called from Sub '_block11' pc 17 (EVAL_13:11) > called from

Re: Comparing inexact values (was "Re: Temporal changes")

2009-02-25 Thread Mark J. Reed
I think the use of % for the modulus operator is too deeply ingrained to repurpose its infix incarnation. I do quite like the magical postfix %, but I wonder how far it should go beyond ±: $x += 5%; # becomes $x += ($x * .05)? Or maybe $x *= 1.05 ? $x * 5%; # becomes $x * .05 ?

[perl #63264] [BUG] Subsets are defined by default.

2009-02-25 Thread jn...@jnthn.net via RT
On Mon Feb 16 12:46:55 2009, bacek wrote: > > perl6: subset Strand where {$_ == 0 | 1 | -1}; say Strand.defined > rakudo c4f0f9: OUTPUT«1␤» This now gives 0 as expected as of git 3484985. Added spectest for it to S12-subset/subtypes.t. Thanks! Jonathan

Re: Comparing inexact values (was "Re: Temporal changes")

2009-02-25 Thread Jon Lang
Mark J. Reed wrote: > I do quite like the magical postfix %, but I wonder how far it should > go beyond ±: > > $x += 5%;   # becomes $x += ($x * .05)?  Or maybe $x *= 1.05  ? > $x * 5%;   # becomes $x * .05 ? If it works with ±, it ought to work with + and -. Rule of thumb: if there's no easy way

Re: r25490 - docs/Perl6/Spec

2009-02-25 Thread Martin D Kealey
On Wed, 25 Feb 2009, Timothy S. Nelson wrote: > I'm in favour of retaining the $[ functionality, but lets give it some > name like $*INDEX_BEGINNING or something like that, so that it's quite > long for people to type :). Surely the interpretation of the index should be up to each array-type? r

Re: Comparing inexact values (was "Re: Temporal changes")

2009-02-25 Thread Doug McNutt
At 13:58 -0500 2/25/09, Mark J. Reed wrote: I do quite like the magical postfix %, but I wonder how far it should go beyond ±: $x += 5%; # becomes $x += ($x * .05)? Or maybe $x *= 1.05 ? $x * 5%; # becomes $x * .05 ? For ratio-like comparisons for effective equality of floats some though

Re: r25490 - docs/Perl6/Spec

2009-02-25 Thread Timothy S. Nelson
On Thu, 26 Feb 2009, Martin D Kealey wrote: On Wed, 25 Feb 2009, Timothy S. Nelson wrote: I'm in favour of retaining the $[ functionality, but lets give it some name like $*INDEX_BEGINNING or something like that, so that it's quite long for people to type :). Surely the interpretation of the

r25569 - in docs/Perl6/Spec: . S32-setting-library

2009-02-25 Thread pugs-commits
Author: wayland Date: 2009-02-26 02:56:30 +0100 (Thu, 26 Feb 2009) New Revision: 25569 Modified: docs/Perl6/Spec/S28-special-names.pod docs/Perl6/Spec/S32-setting-library/IO.pod Log: S32: Mentioned IPv6 S28: bugfixes Modified: docs/Perl6/Spec/S28-special-names.pod =

r25570 - docs/Perl6/Spec

2009-02-25 Thread pugs-commits
Author: lwall Date: 2009-02-26 03:05:41 +0100 (Thu, 26 Feb 2009) New Revision: 25570 Modified: docs/Perl6/Spec/S02-bits.pod Log: [S02] more package and variable name cleanups Modified: docs/Perl6/Spec/S02-bits.pod === --- docs/Pe

Re: r25490 - docs/Perl6/Spec

2009-02-25 Thread Larry Wall
On Thu, Feb 26, 2009 at 11:57:07AM +1100, Timothy S. Nelson wrote: > On Thu, 26 Feb 2009, Martin D Kealey wrote: > >> On Wed, 25 Feb 2009, Timothy S. Nelson wrote: >>> I'm in favour of retaining the $[ functionality, but lets give it some >>> name like $*INDEX_BEGINNING or something like that, so t

Re: Comparing inexact values (was "Re: Temporal changes")

2009-02-25 Thread Larry Wall
On Wed, Feb 25, 2009 at 02:34:50PM -0800, Jon Lang wrote: : Mark J. Reed wrote: : > I do quite like the magical postfix %, but I wonder how far it should : > go beyond ±: : > : > $x += 5%;   # becomes $x += ($x * .05)?  Or maybe $x *= 1.05  ? : > $x * 5%;   # becomes $x * .05 ? : : If it works wit

Exceptions question

2009-02-25 Thread Timothy S. Nelson
S04 says: Because the contextual variable C<$!> contains all exceptions collected in the current lexical scope, saying C will throw all exceptions, whether they were handled or not. A bare C/C takes C<$!> as the default argument. Does this mean that $! is a container of some sor

Re: Exceptions question

2009-02-25 Thread Larry Wall
On Thu, Feb 26, 2009 at 02:05:28PM +1100, Timothy S. Nelson wrote: > Does this mean that $! is a container of some sort? It's an object, which (in the abstract) can contain anything it jolly well pleases. The main question beyond that is how it responds if used like one of the standard cont

r25573 - in docs/Perl6/Spec: . S32-setting-library

2009-02-25 Thread pugs-commits
Author: wayland Date: 2009-02-26 04:43:20 +0100 (Thu, 26 Feb 2009) New Revision: 25573 Added: docs/Perl6/Spec/S32-setting-library/Exception.pod Modified: docs/Perl6/Spec/S16-io.pod docs/Perl6/Spec/S32-setting-library/Numeric.pod Log: Numeric.pod: Added some notes on what needs to be docum