Re: S05 (regex) Q:

2009-08-08 Thread Patrick R. Michaud
On Sat, Aug 08, 2009 at 05:45:40PM -0400, Austin Hastings wrote: > [...] > Specifically, is > token { ... } > going to match the same pattern as > rule { ... } > ?? > > I ask because (I just did it, and) with rules encouraging the liberal > use of whitespace, and implicitly generating <

Re: [perl #68306] Rakudo 2009-07

2009-08-08 Thread Aaron Sherman
On Sat, Aug 8, 2009 at 5:13 PM, Carl Mäsak wrote: > Moritz Lenz (>), Aaron Sherman (via RT) (>>): > >>> say Str.^methods[0] > >> sprintf > >> [...] > >>> say Str.^methods[0].name > >> pred > > > > Yes, there's a method 'pred'. So what? > > I, for one, find that pair of results... surprising. If t

Re: [perl #68306] Rakudo 2009-07

2009-08-08 Thread Jonathan Worthington
Aaron Sherman (via RT) wrote: I'm working in a firewalled environment today where I can't get access to git, so here's what I see in 2009-07 downloaded from http://github.com/rakudo/rakudo/downloads S12 says: "The .^methods method returns method-descriptors containing: name

Re: Testing Perl 6 analog to Perl 5's tie.

2009-08-08 Thread Jonathan Worthington
Aaron Sherman wrote: On Sun, Aug 2, 2009 at 1:10 PM, Moritz Lenz wrote: Let's pick up this old mail before it gets completely warnocked ;-) For the record, this discussion only applies to scalar implementation types. For example for Arrays I expect things to work by overriding the method p

S05 (regex) Q:

2009-08-08 Thread Austin Hastings
S05 mentions the magic pattern in two locations, but I cannot find a specification of the interaction between and the ratcheting {rule/token} status. Specifically, is token { ... } going to match the same pattern as rule { ... } ?? I ask because (I just did it, and) with rules enco

Re: [perl #68306] Rakudo 2009-07

2009-08-08 Thread Carl Mäsak
Moritz Lenz (>), Aaron Sherman (via RT) (>>): >>> say Str.^methods[0] >> sprintf >> [...] >>> say Str.^methods[0].name >> pred > > Yes, there's a method 'pred'. So what? I, for one, find that pair of results... surprising. If the method object stringifies to its name, shouldn't the above two print

[perl #68294] [PATCH] kv in the setting

2009-08-08 Thread via RT
# New Ticket Created by dakkar # Please include the string: [perl #68294] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=68294 > second patch from Lisbon: kv in the setting >From db44fb60bde4009d148ac699c0a9b8383ac2206d Mon

Re: [perl #68306] Rakudo 2009-07

2009-08-08 Thread Moritz Lenz
Aaron Sherman (via RT) wrote: > # New Ticket Created by Aaron Sherman > # Please include the string: [perl #68306] > # in the subject line of all future correspondence about this issue. > # http://rt.perl.org/rt3/Ticket/Display.html?id=68306 > > > > I'm working in a firewalled environment t

[perl #68318] [BUG] use exceptions not handled correctly within try block

2009-08-08 Thread via RT
# New Ticket Created by Ben Petering # Please include the string: [perl #68318] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=68318 > # "Normal" exception in try {} is caught BEGIN { try { widdle; CA

[perl #68298] Null PMC bug when code confused as hash

2009-08-08 Thread via RT
# New Ticket Created by Solomon Foster # Please include the string: [perl #68298] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=68298 > colomon: rakudo: (1..3).map({$_ => $_*$_}).perl.say p6eval: rakudo e5a63d: OUTPUT«Use

[perl #68320] [BUG] TODO: $!.pending not implemented (yet)

2009-08-08 Thread via RT
# New Ticket Created by Ben Petering # Please include the string: [perl #68320] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=68320 > eval 'widdle()'; eval 'waddle()'; say "pending: " ~ $!.pending.perl; ... gives ... Me

[perl #62178] gather/take does not work with loop, either

2009-08-08 Thread Solomon Foster
rakudo: my @a = gather loop (my $i = 1; $i < 10; $i++) { take $i }; @a.perl.say; p6eval: rakudo 7717c4: OUTPUT«[10, 10, 10, 10, 10, 10, 10, 10, 10]␤» -- Solomon Foster: colo...@gmail.com HarmonyWare, Inc: http://www.harmonyware.com

[perl #68296] [PATCH] pick in the setting

2009-08-08 Thread via RT
# New Ticket Created by dakkar # Please include the string: [perl #68296] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=68296 > third patch from Lisbon: pick in the setting >From 884a1799328f2bccaf7ec06d1910c4360227c625 Mo

[perl #68306] Rakudo 2009-07

2009-08-08 Thread via RT
# New Ticket Created by Aaron Sherman # Please include the string: [perl #68306] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=68306 > I'm working in a firewalled environment today where I can't get access to git, so here'

[perl #68290] [BUG] Rakudo should also warn about redefinition of regex/token/rule and methods

2009-08-08 Thread via RT
# New Ticket Created by Hanno Hecker # Please include the string: [perl #68290] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=68290 > $ cat test.p6 use v6; class A { sub a { say "a" }; sub a { say "a" } } grammar B { toke

[perl #68292] [PATCH] splice (and tests) fixed

2009-08-08 Thread via RT
# New Ticket Created by dakkar # Please include the string: [perl #68292] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=68292 > here is the first patch that I wrote in Lisbon: splice works. I already committed the splice.

[perl #68274] Script runs for ~18,000 iterations then seg faults

2009-08-08 Thread via RT
# New Ticket Created by Solomon Foster # Please include the string: [perl #68274] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=68274 > use v6; loop (my $n = 2; $n <= 354294; $n++) { my @digits = $n.comb(/\d/); my

Does a string remember all Unicode levels?

2009-08-08 Thread Moritz Lenz
t/spec/S02-builtin_data_types/unicode.t has tests like this: # LATIN CAPITAL LETTER A, COMBINING GRAVE ACCENT my Str $u = "\x[0041,0300]"; is $u.bytes, 3, 'combining À is three bytes as utf8'; is $u.codes, 2, 'combining À is two codes'; is $u.graphs, 1, 'combining À is one graph'; Which seems to