[perl #57400] Working with %*ENV in Rakudo is difficult

2008-10-16 Thread Carl Mäsak via RT
Here's a thorough investigation of the strange properties of %*ENV. Rakudo r31926 has an %*ENV variable which claims to be of Hash type, but which behaves very non-hashlike when you poke it. Its hash values are supposedly strings, but don't have the corresponding Str methods. say 'a'.WHAT; # Str

[perl #62068] output from .perl for regex

2009-01-10 Thread Carl Mäsak via RT
Richard (>): > The output from .perl for a regex could be more useful than currently. > > [...] > > Perhaps, > > Regex { + } That does not seem to be legal Perl 6 to me. The idea of .perl is to output runnable code, after all. How about this instead? / + /

[perl #62170] Rakudo retains the Perl 5 behavior of trimming trailing fields

2009-01-11 Thread Carl Mäsak via RT
On Sat Jan 10 09:45:05 2009, masak wrote: > rakudo: " a b c".split(/ <.sp>+ /).perl.say > rakudo 35344: OUTPUT«["", "a", "b", "c"]␤» > oh, and the p5 behavior of trimming trailing fields is not in p6 > (for split) > * masak submits rakudobug TimToady pointed out that Rakudo actually does as

[perl #62156] Problems with File objects

2009-01-11 Thread Carl Mäsak via RT
Pm (>): > Is C a class? I can't find any mention of it in the synopses. OH, you're right. Changing the name of this ticket to "Rakudo shouldn't expose C as a core class". :)

[perl #62148] Cannot take .values of an uninitialized Any variable

2009-01-11 Thread Carl Mäsak via RT
Carl (>), Pm (>>), Carl (>>>): > > > Same goes for Undef, which should arguably also be able to output > > > .values, I think. > > > > Perl 6 doesn't have C. > > What I guess I meant was that the following shouldn't happen either: > > $ perl6 -e 'my $x; say $x.values' > Method '!flatten' not fou

[perl #62148] Cannot take .values of an uninitialized Any variable

2009-01-11 Thread Carl Mäsak via RT
Pm (>), Carl (>>): > > Same goes for Undef, which should arguably also be able to output > > .values, I think. > > Perl 6 doesn't have C. What I guess I meant was that the following shouldn't happen either: $ perl6 -e 'my $x; say $x.values' Method '!flatten' not found for invocant of class 'Unde

[perl #62184] Rakudo doesn't DTRT with 'state' variables and cloned blocks

2009-01-11 Thread Carl Mäsak via RT
Carl (>): > Rakudo r35404 doesn't work according to spec in the area of 'state' > variables and cloned blocks. > > $ perl6 -e 'my $i = 0; my $func = { state $x = $i++; say $x }; my ($a, > $b) = $func.clone, $func.clone; $a(); $b(); $a()' > 0 > 1 > 2 > > According to S04, this should be equivalent

[perl #60234] [TODO] Implement method .contains on hashes

2009-01-14 Thread Carl Mäsak via RT
.contains turned out to be a fossil from the time between .exists and :exists. Rejecting bug.

[perl #62332] Pair.map leaves $_ undefined in the codeblock parameter in Rakudo

2009-01-15 Thread Carl Mäsak via RT
Andy Bach writes (>): > Hmm: > ./perl6 -e 'my $x = :a<5>; say $x.map({.key, .value + 1}).perl' > ["a", 6] > > ./perl6 -e 'my $x = :a<5>; say $x.map({.key => .value + 1}).perl' > Method 'key' not found for invocant of class 'Failure' > > so it's the 'supercomma' that's troubled? Seems like it. Th

[perl #62382] [TODO] method form of postfix:

2009-01-15 Thread Carl Mäsak via RT
On Wed Jan 14 22:00:33 2009, masak wrote: > rakudo: my $t = 5; say $t.i > rakudo 35576: OUTPUT«Method 'i' not found for invocant of > class 'Int [...] > TimToady: should that work? > think so > * masak submits rakudobug Also this: hmm rakudo: my $t = 5; say $t\i rakudo 35576: OUTPUT«Statem

[perl #62704] Rakudo stores a grammar in $/ after .parse

2009-01-28 Thread Carl Mäsak via RT
On Sat Jan 24 08:42:32 2009, masak wrote: > r35957: > > $ perl6 -e 'grammar G { regex TOP { ^ } }; G.parse(""); say $/.WHAT; > say $/ ~~ Match' > G > 0 > > What I usually expect in $/ is a Match object that I can query for > matched tokens. I don't know how to do that with a G object; neither > d

[perl #62900] Rakudo dies when A is mentioned after declaring A::B

2009-01-30 Thread Carl Mäsak via RT
masak (>): > rakudo: role A::B {}; say 42 ~~ A > rakudo 36143: OUTPUT«invoke() not implemented in class > 'NameSpace [...] > * masak submits rakudobug > rakudo: role A::B {}; A > rakudo 36143: OUTPUT«invoke() not implemented in class > 'NameSpace' [...] Related: rakudo: class A::B {}; my A $

[perl #62908] An undeclared identifier isn't caught if it's imported indirectly

2009-01-30 Thread Carl Mäsak via RT
masak (>): > $ cat A.pm > use v6; > use B; > > class A does C { > } > $ cat B.pm > use v6; > use C; > $ cat C.pm > use v6; > > role C { > } > $ perl6 A.pm # works > > I've encountered cases where this fails during PIR compilation, but I > am unable to reproduce them right now. AFAIU, it should f

[perl #62474] Rakudo forgets to clone when pushing xx'ed values to an array

2009-01-31 Thread Carl Mäsak via RT
On Fri Jan 30 20:37:51 2009, s1n wrote: > On Sat Jan 17 14:30:47 2009, masak wrote: > > $ perl6 -e 'my @a = "a" xx 5; @a[1] = "b"; say @a' > > abaaa > > $ perl6 -e 'push my @a, "a" xx 5; @a[1] = "b"; say @a' > > b > > $ svn info | grep Revi > > Revision: 35707 > > I'm not sure I understand how

[perl #61452] Rakudo doesn't treat several whatever stars in a row correctly in a list smartmatch

2009-01-31 Thread Carl Mäsak via RT
On Fri Jan 30 20:20:04 2009, s1n wrote: > On Wed Dec 17 15:38:07 2008, masak wrote: > > rakudo: say (1,2,3) ~~ (1,*,*,3) > > rakudo 34053: OUTPUT[0␤] > > If my understanding of how whatever-star works is right, this test isn't > entirely correct. What you probably meant to test was this: > > (2

[perl #63034] Make failure on Windows

2009-02-05 Thread Carl Mäsak via RT
ajr (>): > Somewhere around Rev. # 36330, perl6 stopped making on Windows. The last > few lines of mingw32-make perl6: > > perl6multisub.o: In function `do_dispatch': > C:/parrot/languages/perl6/src/pmc/perl6multisub.pmc:665: undefined > reference to > `string_from_cstring' > C:/parrot/languages/p

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

2009-02-12 Thread Carl Mäsak via RT
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 rescuing this bug ticket by re-naming it "[TODO] Implement (*@

[perl #63400] list interpolation

2009-02-23 Thread Carl Mäsak via RT
On Sun Feb 22 11:46:09 2009, schwenn wrote: > Shouldn't > > -- > C:\parrot>perl6 -e "my @items; @items=( 1,2,3,4); say qq(move @items[] > to > you);" > > move @items[] to you >

[perl #63568] Null PMC access when calling .arity on a multi sub in Rakudo

2009-03-02 Thread Carl Mäsak via RT
Also .signature on multis: rakudo: sub f($z) {}; &f.signature.perl.say rakudo af4b73: OUTPUT«:(Any $z)␤» rakudo: multi sub f($z) {}; &f.signature.perl.say rakudo af4b73: OUTPUT«Null PMC access in find_method() [...]

[perl #63770] Rakudo does the Wrong Thing when calling a method which returns a closure

2009-03-10 Thread Carl Mäsak via RT
$.a.() is equivalent to $.a().() which is equivalent to $.a()() ruoso: ok. I buy that. I just don't see why .() and () aren't equivalent in this particular case. they are but you're missing that $.a is a method call not a variable ah. so, the full version of $.a is $.a() * masak sees now

[perl #63778] Rakudo doesn't numify operands to min

2009-03-10 Thread Carl Mäsak via RT
anyway, S03 says that "By default C and C use C semantics." I don't think that implies numification of the arguments. oh. but what happens when you cmp a Num and a List? I don't know. Neither does Parrot, which is why we get "No suitable candidate found ... " :-) pasting this addendum to the

[perl #64822] S05 and Rakudo disagree on :: or . for grammar rules

2009-04-19 Thread Carl Mäsak via RT
masak: it's :: because what's really going on is Cursor.Grammar::rule() well, $cursor.Grammar::rule TimToady: I can patch S05 if you want. fine I'll close the bug, too. :)

[perl #64824] .parse on a Grammar doesn't seem to bind in actions in Rakudo

2009-04-20 Thread Carl Mäsak via RT
rakudo: grammar A { regex TOP { }; regex foo { foo {*} }}; class Act { method foo($/) { say "OH HAI" } }; A.parse("foo", :action(Act)); rakudo a58fce: OUTPUT«OH HAI␤» * masak disqualifies rakudobug * masak hangs head in shame

[perl #61128] some classes leak through from Parrot and cannot be declared in Rakudo

2009-04-20 Thread Carl Mäsak via RT
rakudo: class Task {} rakudo 039f6d: ( no output ) if someone wants to close http://rt.perl.org/rt3/Public/Bug/Display.html?id=61128 dependent on closed tt 71 maybe they can ... * masak closes PhatEddy++

[perl #64922] An unamiguous case of dispatch treated as an ambiguous one

2009-04-23 Thread Carl Mäsak via RT
Jonathan (>), Carl (>>): > > This might be in RT already, but I didn't find it, so... > > > > rakudo: multi foo (@a) { 1 }; multi foo ($a, %h?) { 2 }; say > > foo(<1 2 3>); > > rakudo 69b318: OUTPUT«Ambiguous dispatch to multi 'foo'. > > Ambiguous candidates had signatures:␤:(Positional.new() @a)

[perl #64922] An unamiguous case of dispatch treated as an ambiguous one

2009-04-23 Thread Carl Mäsak via RT
rakudo: say Positional[Int] ~~ Any rakudo e8f624: OUTPUT«1␤» oh hmm rakudo: say Any ~~ Positional[Int] rakudo e8f624: OUTPUT«0␤» But it kinda surprises me... (I thought this was why Positional and Any were sorting to same precedence level.) rakudo: multi f($x) { 1 }; multi f(@x) { 2 }; say

[perl #60176] Rakudo fails on defining classes with core roles

2009-04-27 Thread Carl Mäsak via RT
On Tue Nov 04 09:05:10 2008, jn...@jnthn.net wrote: > On Mon Oct 27 10:55:52 2008, masak wrote: > > Rakudo r32151 can't create classes with roles from the Rakudo-defined > > classes. > > > > $ ./perl6 -e 'role B {}; class A does B {}' # this works > > > > $ perl6 -e 'class A does Int {}' # this d

[perl #58524] =<> doesn't read from $*IN in Rakudo

2009-05-01 Thread Carl Mäsak via RT
On Thu Apr 30 07:49:00 2009, ronaldxs wrote: > > Shouldn't that be just =$*IN ? > > Times have changed and not anymore. Aye, resolving. > $ ./perl6 -e 'say =$*IN' > prefix:<=> has been superseeded by $handle.lines and $handle.get > > $*IN.lines seems to work and yes I am hoping someone will fix

[perl #57864] Calling a token "text", "null" or "ws" in Rakudo makes matching fail

2009-05-09 Thread Carl Mäsak via RT
Resolving this ticket, since the original problem seems to have been solved. > Beyond that, the problem appears to be that Rakudo is not > presently creating its grammars properly -- it appears to > be deriving them directly from Any instead of from a PGE > grammar class of some sort. As a result

[perl #65740] Errors are written to STDOUT in Rakudo, not STDERR

2009-05-18 Thread Carl Mäsak via RT
masak: 65740 is closable now I think * masak checks rakudo: run('./perl6 -e "die q[OH NOES]" > /dev/null') rakudo 120364: OUTPUT«OH NOES␤in Main (:1)␤» rakudo: run('./perl6 -e "die q[OH NOES]" 2>/dev/null') rakudo 120364: ( no output ) seems fine to me. * masak closes

[perl #65878] Rakudo shouldn't allow metaops with the same modifier twice in a row

2009-05-21 Thread Carl Mäsak via RT
Larry (>): > I don't see a bug here. First, there's no prohibition on multiple > similar metas anymore. But with regard to the example above, metas > are parsed as their own tokens, and the infix: is longer than > the meta R, so should take precedence under LTM. We used to try > to form tokens o

[perl #56366] [TODO] fix 0-argument workarounds in rand, pi, etc.

2009-06-01 Thread Carl Mäsak via RT
masak: there are a couple of bugs noted about an hour ago, if you're in bug submission withdrawal rakudo: say pi("wtf") rakudo 764684: OUTPUT«too many arguments passed - 0 params expected[...] rakudo: say e("twf") rakudo 764684: OUTPUT«2.71828182845905␤» that one twf? TimToady: and the pi v

[perl #66196] .bytes is broken in Rakudo

2009-06-03 Thread Carl Mäsak via RT
Muixirt++ sent a patch, and now it works. Resolving ticket.

[perl #66182] No "die" sub found in Rakudo

2009-06-04 Thread Carl Mäsak via RT
Pm (>): > I don't know if this is more along the lines of what you were looking > for. If so, close the ticket, if not, tell us what you expect. :-) Well, I have no idea what to expect either, but issue I submitted the ticket for has been fixed, and this .HOW.say things seems to be a very differ

[perl #66340] [BUG] Signature of .comb likely too permissive in Rakudo

2009-06-06 Thread Carl Mäsak via RT
On Fri Jun 05 15:27:20 2009, masak wrote: > rakudo: say /foo/ ~~ Regex > rakudo fb2fd4: OUTPUT«1␤» > the signature at src/setting/Any-str.pm:134 still says Code. > should it be Regex instead, like in S32? > rakudo: say 'abcdef'.comb({1}).perl > rakudo fb2fd4: OUTPUT«Method 'to' not found for i

[perl #66388] [BUG] Cannot put Pod after a role declaration statement in Rakudo

2009-06-09 Thread Carl Mäsak via RT
Yes, this one was probably a false alarm; rejecting.

[perl #64526] Null PMC access when a variable occurs before its own declaration in a statement in Rakudo

2009-06-10 Thread Carl Mäsak via RT
Another way to accomplish this: rakudo: my $a = $_ given $a rakudo 5c065e: OUTPUT«Null PMC access in isa() [...] * masak submits rakudobug

[perl #66536] [BUG] "FOO".reverse does not Reverse

2009-06-12 Thread Carl Mäsak via RT
On Thu Jun 11 15:53:43 2009, loveland.rich...@gmail.com wrote: > Hey, I'm using Rakudo, > commit 86aeafbbbe17c2ff4c4b4bedcbc18667b81ad5f5 > > Output: > > r...@glamdring:/opt/rakudo$ perl6 -e 'say "Rakudo".reverse' > Rakudo Hello Rich, Try .flip. A while ago C<.reverse> became a list-only method

[perl #66450] [BUG] Inexplicable Parrot error when running some PIR-compiled modules in Rakudo

2009-06-18 Thread Carl Mäsak via RT
I can no longer reproduce this problem locally. Resolving ticket.

[perl #67050] $str.Num should be the same as +$str

2009-06-30 Thread Carl Mäsak via RT
On Tue Jun 30 01:56:39 2009, allb...@ece.cmu.edu wrote: > I thought unary + was scalar/item? context in perl6, not numify. When in doubt, check the spec. :) S03 (]): ] Unlike in Perl 5, where + is a no-op, this operator coerces to ] numeric context in Perl 6. So prefix:<~> stringifies, prefix:<+

[perl #67148] [BUG] take without gather should have a better error message in Rakudo

2009-07-03 Thread Carl Mäsak via RT
masak (>): > ok; let me just create the rakudobug first, in case I fail. :) With some help from Tene++, I managed to sneak in a better error message in Rakudo commit 468c021f. Resolving ticket.

[perl #67544] [BUG] .get and .lines are gone from $*IN in Rakudo

2009-07-14 Thread Carl Mäsak via RT
On Tue Jul 14 05:43:04 2009, masak wrote: > rakudo: say $*IN.get > rakudo 0c2cb6: OUTPUT«Method 'get' not found for invocant of > class 'IO'␤» > how do I read a line from STDIN in Rakudo? > shouldn't that work? > rakudo: say $*IN.lines(1) > rakudo 0c2cb6: OUTPUT«Method 'lines' not found for i

[perl #67768] [BUG] Very unhelpful error message for declaring a role with a name already assigned to a class

2009-07-22 Thread Carl Mäsak via RT
On Tue Jul 21 17:05:56 2009, hud...@walttollefson.com wrote: > rakudo: role List {method foo{1}} > > rakudo 3b1bda: OUTPUT«Method '!add_variant' not found for invocant > of class ”␤» > > My first rakudobug... Declaring an existing class as a role seems to be the culprit here. rakudo: role List

[perl #67872] [BUG] Arrays passed through *%_ and stored into attributes get an extra layer of Array around them in Rakudo

2009-07-25 Thread Carl Mäsak via RT
that actually seems right to me because the value portion of a pair is a scalar and placing an array into a scalar creates a reference (modulo any new capture/parcel semantics) pmichaud: ok. let's say I want to have an array in my @!a. (and I need to use *%_ because I'm passing unknown things

[perl #65804] [BUG] 'sub' cannot be used as a routine name

2009-08-02 Thread Carl Mäsak via RT
This one seems fixed. rakudo: sub sub($foo) { say "OH HAI" }; sub(1) rakudo e02bc0: OUTPUT«OH HAI␤» * masak closes #65804 I'd close, but it could perhaps use a spectest; assigning to KyleHa++.

[perl #65960] Roles don't do Role in Rakudo

2009-08-02 Thread Carl Mäsak via RT
This now works in latest Rakudo: rakudo: role A {}; say A ~~ Role rakudo e02bc0: OUTPUT«1␤» Assigning to KyleHa++ for spectesting.

[perl #68518] [BUG] Null PMC access when not finding the ICU library inside a try block in Rakudo

2009-08-15 Thread Carl Mäsak via RT
On Fri Aug 14 06:53:05 2009, masak wrote: > $ svn info # Parrot > [...] > Revision: 40543 > > $ git show # Rakudo > commit 0d4fe08d2e6f249211a33a8f9b122599fadbe862 > > $ perl6 -e 'my $x = "\x[5ea]\x[5ea]"; $x++; say $x.perl' > no ICU lib loaded > in Main (:1) > > $ perl6 -e 'my $x = "\x[5ea]\x[5

[perl #68568] [BUG] Less than awesome error message when passing a named where a positional should be in Rakudo

2009-08-16 Thread Carl Mäsak via RT
On Sun Aug 16 04:30:06 2009, masak wrote: > rakudo: sub foo($positional, :$named) {}; foo(:named) > rakudo 0d4fe0: OUTPUT«invalid arg type in named portion of > args␤in sub foo [...] > it doesn't say the name of the arg that cause the error, or > the name of the arg that it expected > * masak su

[perl #62738] The use of 'use' before 'class Foo is Bar' in Rakudo

2009-08-19 Thread Carl Mäsak via RT
On Sun Jan 25 07:41:03 2009, masak wrote: > TimToady: sometimes I'm unhappy about how restrictive the > 'class Foo;' syntax is. the idea is very sound, to remove a level of > indentation that encompasses practically the whole file. but I can't > do 'class Foo is Bar;', because there's no way to pu

[perl #66394] [BUG] STD.pm allows anything before a statement role declaration, Rakudo doesn't

2009-08-19 Thread Carl Mäsak via RT
This is fixed nowadays. Resolving ticket.

[perl #65942] Missing %*ENV values are defined, but don't exist

2009-09-08 Thread Carl Mäsak via RT
This works now: $ perl6 -e 'say %*ENV.exists()' 0 $ perl6 -e 'say defined %*ENV' 0 Resolving.

[perl #69272] [TODO] Implement .succ and .pred for Rat

2009-09-22 Thread Carl Mäsak via RT
coke (>), masak (>>): > > rakudo: my $a = 3/4; $a++ > > rakudo 5d3d3a: OUTPUT«Method 'succ' not found for invocant of > > class 'Rat'␤» > > * masak submits rakudobug > > This seems to be working as of e52ed31e2fe1ab2fd4a661ebeda78a880bad1215 > > $ ./perl6 -e 'my $a = 3/4; say ++$a' > 1.75 Inde

[perl #67446] [BUG] Null PMC access in .perl when traversing Array with deleted element in Rakudo

2009-10-05 Thread Carl Mäsak via RT
On Sat Jul 11 03:58:53 2009, masak wrote: > rakudo: my @a = 0..1; @a.delete(0); say @a.perl > rakudo 02d0ed: OUTPUT«Null PMC access in isa()␤in method > Any::map [...]␤called from method List::perl [...] > * masak submits rakudobug > rakudo: my @a = 0..1; @a[0] = undef; say @a.perl > rakudo 02d

[perl #69967] [BUG] Cannot refer to a constant declared in a class in Rakudo

2009-10-23 Thread Carl Mäsak via RT
On Thu Oct 22 04:05:08 2009, masak wrote: > In Rakudo 4c248e5c, constants can no longer be used inside of classes. > > $ perl6 -e'class A { constant B = 5; has $!x = B }; A.new' > Null PMC access in isa() > [...] > $ perl6 -e'class A { constant B = 5; has $!x = A::B }; A.new' > Null PMC access in

[perl #68350] [BUG] Anonymous scalar parameters work with STD.pm, but not with Rakudo

2009-10-29 Thread Carl Mäsak via RT
Moritz (>): > This now produces: > > 22:38 <@moritz_> rakudo: for 1,2,3,4,5 -> $a, $? { say $a } > 22:38 <+p6eval> rakudo 6a43a3: OUTPUT«1␤3␤StopIteration␤in Main (file > , line )␤» > > So this bug is fixed, but shows another problem - don't know if we have > a ticket for that one. Believe me,

[perl #68568] [BUG] Less than awesome error message when passing a named where a positional should be in Rakudo

2009-10-29 Thread Carl Mäsak via RT
On Wed Oct 28 14:34:59 2009, moritz wrote: > On Sun Aug 16 04:30:06 2009, masak wrote: > > rakudo: sub foo($positional, :$named) {}; foo(:named) > > rakudo 0d4fe0: OUTPUT«invalid arg type in named portion of > > args␤in sub foo [...] > > it doesn't say the name of the arg that cause the error, o

[perl #70469] [BUG] Either binding or lexicals are broken in Rakudo when recursing in methods

2009-11-17 Thread Carl Mäsak via RT
masak (>): > $ cat /tmp/test > class M { > has M @.ms is rw; > method s($i=0) { > $i ~ "[{ map { "{$_.s($i + 1)}" }, self.ms }]" > } > } > > my $m = M.new; > my $m2 = M.new; > $m2.ms = M.new; > $m.ms = M.new, $m2, M.new; > say $m.s; > > $ perl6 /tmp/test > 0[1[] 2[3[]] 4[]] >

[perl #71454] Method 'prime' not found for invocant of class 'Integer'

2009-12-29 Thread Carl Mäsak via RT
Rejected by request. See #71456 instead.

[perl #72070] [BUG] cannot call a regex/token/rule called 'end' in Rakudo

2010-01-14 Thread Carl Mäsak via RT
On Wed Jan 13 14:15:22 2010, m...@kli.org wrote: > Here are two files; one works (shows a match), and one errors with > > get_attr_str() not implemented in class 'Integer' > in Main (file src/gen_setting.pm, line 324) > > > == > # This one works: > > use

[perl #68738] [BUG] [LHF] "say Exception" causes seg fault

2010-01-22 Thread Carl Mäsak via RT
On Sun Aug 23 01:32:59 2009, carlin wrote: > > say Exception; > Segmentation fault > > > rakudo: say Exception; > rakudo 0d4fe0: ( no output ) I'll go out on a limb and guess that the following behaviours are related. $ perl6 -e 'eval "RONG" or say $!.PARROT' Perl6Exception Fair enough. $

[perl #72338] Strange "method not found" bug.

2010-01-25 Thread Carl Mäsak via RT
Ovid (>): > This code: > > class x { > multi method y { self.y("void") } > multi method y (Str $arg) { say $arg } > } > x.new.y("foo"); > x.new.y; > > Produces this output: > > Method 'y' not found for invocant of class 'Failure' > in Main (file src/gen_se

[perl #70888] [BUG] Null PMC access when doing .WHAT on a for loop

2010-02-02 Thread Carl Mäsak via RT
On Fri Nov 27 13:21:03 2009, masak wrote: > rakudo: my @a = 1, 2, 3; my @b = (@a.shift for ^3); @b[0].WHAT > rakudo 7347ec: Null PMC access in find_method('WHAT') [...] > * masak submits rakudobug Also, like this: $ perl6 -e 'sub foo { for 1,2,3 {} }; say foo.WHAT' Null PMC access in find_met

[perl #72440] [BUG] Unquoted literals in separators in quantifiers in regex matches produce the wrong result in Rakudo

2010-02-02 Thread Carl Mäsak via RT
masak (>): > $ perl6 -e 'say "1ab2ab3c" ~~ /^ \d ** abc $/ ?? "OH NOES" !! "oh > phew"' > OH NOES > > This is a PGE bug. As pmichaud pointed out, the same bug also manifests itself in goals, for the same reasons: $ perl6 -e 'say "(foo)" ~~ /^ \( ~ \) foo $/' Unable to parse , couldn't find fina

[perl #73074] [BUG] Rakudo barfs at undeclared &-sigilled variables

2010-02-27 Thread Carl Mäsak via RT
On Fri Feb 26 21:02:28 2010, pmichaud wrote: > Now fixed in 4ab4b8. Now reports: > > > &foo > Could not find non-existent sub &foo > > Unlike the previous error message, this is a runtime error (that occurs > when the program attempts to access &foo and cannot find one). It's still quite disti

[perl #73236] [BUG] LTA error messages on literals with too many decimals in Rakudo

2010-03-03 Thread Carl Mäsak via RT
rakudo: say 0.​ 00 rakudo 5e5969: OUTPUT«Divide by zero␤current instr.: 'infix:' [...] nice! 3 different bugs the exact error changes with the number of extra 0's you have! rakudo: say 0.000​

[perl #73442] [BUG] Too many &&'s in the 'ambiguous dispatch' error in Rakudo

2010-03-09 Thread Carl Mäsak via RT
On Mon Mar 08 08:15:46 2010, masak wrote: > rakudo: multi a(&a) { }; multi a(&a) { }; a sub { }; > rakudo 8f9054: OUTPUT«Ambiguous dispatch to multi 'a'. > Ambiguous candidates had signatures:␤:(&&a)␤:(&&a) [...] > * masak submits rakudobug Fixed in 49749c0. Closing.

[perl #61494] Strange parsing error involving two spaces

2010-03-20 Thread Carl Mäsak via RT
This particular parsefail doesn't occur anymore in ng. Resolving ticket.

[perl #66498] [BUG] Snowman, comet, regex parser, oh my!

2010-03-20 Thread Carl Mäsak via RT
rakudo: say "abc" ~~ m ☃.(.).☄ rakudo 6c8737: OUTPUT«Confused at line 11 [...] \o/ for once, Rakudo and I are confused at the same thing! :) * masak closes the infamous snowman/comet rakudobug :) pmichaud++

[perl #67142] [BUG] ranges aren't immutable, but should be, in Rakudo

2010-03-21 Thread Carl Mäsak via RT
Ranges are now immutable in master. Resolving ticket.

[perl #68116] [BUG] Rakudo won't accept subs as valid &-sigilled parameters in Rakudo

2010-03-21 Thread Carl Mäsak via RT
The particular circumstances involved in this ticket are resolved. (But see [perl #73688].)

[perl #59118] Class attributes without accessors don't work in Rakudo

2010-03-21 Thread Carl Mäsak via RT
On Sun Mar 21 14:33:26 2010, lue wrote: > class A { has $.b; method x { $!b = "b" } }; A.new.x > > this works. Sure, but that doesn't create a class attribute, as was the topic of this ticket. :) The 'has' declarator gives each object instance its own attribute, whereas the ordinary 'my' declar

[perl #56604] Not all error messages should include a stack trace

2010-03-31 Thread Carl Mäsak via RT
I'd just like to report that the stacktraces in Rakudo are back to being insanely long. I think they're even longer than when people were complaining about them being far too long last time, and someone fixed it. and are also back to be totally useless yes. * masak submits rakudobug Here's

[perl #64968] [BUG] After declaring my @x; @x.defined returns true and should not

2010-04-03 Thread Carl Mäsak via RT
On Wed Apr 22 06:25:42 2009, ronaldxs wrote: > From IRC below > > 19:07 PhatEddy rakudo: my @x; say 'ok' if @x.defined > 19:07 p6eval rakudo 69b318: OUTPUT«ok?» > > The equivalent Perl 5 code says nothing unless you put something in @x > at some point. > > This is similar to some other tickets

[perl #74110] [TODO] Capture needs to do Positional and Associative

2010-04-17 Thread Carl Mäsak via RT
rakudo: my $x = Capture.new; say $x[0] rakudo 78faa0: OUTPUT«Null PMC access in type() rakudo: my $x = Capture.new; say $x rakudo 78faa0: OUTPUT«Null PMC access in type() (probably a manifestation of RT #74110) * masak adds it to that ticket

[perl #74488] [BUG] A closure retains the lexpad of the innermost call of the routine it's in in Rakudo

2010-04-19 Thread Carl Mäsak via RT
pmichaud: do you think http://rt.perl.org/rt3/Ticket/Display.html?id=74488 is identical to http://rt.perl.org/rt3/Ticket/Display.html?id=73034 ? masak: looking masak: likely yes. The problem is that the closure isn't being cloned upon assignment. ah. so I'll merge the tickets, then? wfm

[perl #74520] [BUG] Can't call a 'my'-scoped method from within a class in Rakudo

2010-04-20 Thread Carl Mäsak via RT
masak: Your ticket is wrong. 74520 a bug in a rakudobug! * masak looks The bug is not that it didn't find the sub It shoudln't The bug is it gave an internals error rather than a good one. I guess more succinct is: rakudo: A::foo # right error rakudo 027ff4: OUTPUT«Can not find sub A::foo␤

[perl #73608] [BUG] Rakudo (nqp-rx) regexes won't backtrack properly into capturing parentheses or subrules

2010-04-26 Thread Carl Mäsak via RT
rakudo: grammar G { regex TOP { a }; regex foo { a* } }; say ?G.parse("aaa") rakudo e393c7: OUTPUT«0␤» alpha: grammar G { regex TOP { a }; regex foo { a* } }; say ?G.parse("aaa") alpha 30e0ed: ( no output ) locally, alpha gives me '1', which is the correct answer. * moritz_ agrees there'

[perl #74078] [BUG] Can't find &say inside method that came from a role in Rakudo

2010-04-26 Thread Carl Mäsak via RT
rakudo: role work { method x {say 'hello'}}; class me does work {}; me.new.x(); rakudo e393c7: OUTPUT«Could not find sub &say [...] Is there a work around that? It's already reported as a bug takadonet: 'fraid the workaround is not to use roles... :( masak: not the answer I was looking for :

[perl #73326] [BUG] Infinite recursion in stringification of a capture in Rakudo

2010-04-29 Thread Carl Mäsak via RT
On Tue Apr 27 22:04:18 2010, quester wrote: > It seems to me that this issue was resolved at some point in the past, > "say ~\()" now says "Capture()<0x4ed3138>". So it does. Resolving.

[perl #57268] Strange error message in rakudo when returning from outside of a sub

2010-04-30 Thread Carl Mäsak via RT
On Fri May 15 11:42:46 2009, jn...@jnthn.net wrote: > On Fri Jul 25 05:47:30 2008, masak wrote: > > $ svn info | grep Revi > > Revision: 29734 > > $ ./perl6 -e 'return' > > No exception handler and no message > > > > This error message is strange, needlessly exposes internals, and > > doesn't say

[perl #66034] dotty:<.=> and infix:<.=> inconsistent

2010-05-04 Thread Carl Mäsak via RT
On Tue May 26 16:24:25 2009, jn...@jnthn.net wrote: > 01:21 <@jnthn> rakudo: my %h = B => 2; my $x = "ABC"; $x .= > subst(/(<[BD]>)/, > {%h{$0}},:global); say $x; > 01:21 < p6eval> rakudo 695300: OUTPUT«A2C␤» > 01:21 <@jnthn> rakudo: my %h = B => 2; my $x = "ABC"; $x.=subst(/(<[BD]>)/, > {%h{$0}},

[perl #73280] [BUG] infix:<^^> and infix: return Undef or Int instead of Bool::False (in the not-exactly-one cases) in Rakudo

2010-05-07 Thread Carl Mäsak via RT
[...] (0 xor 0) gives an Int right now in Rakudo. that's wrong. I believe there's a ticket for it. here: http://rt.perl.org/rt3/Ticket/Display.html?id=73280 it's talking about infix:<^^> but I'd bet the same goes for infix: rakudo: say (90 xor 4).WHAT rakudo 1eef08: OUTPUT«Method 'WHAT' not

[perl #75214] sub Str {} definition is ignored while smartmatching

2010-05-21 Thread Carl Mäsak via RT
On Thu May 20 05:41:19 2010, pawel.pab...@implix.com wrote: > [14:36] rakudo: sub Str {}; say "test" ~~ Str; # how this > should behave > according to spec? compile error? compare to Str type or enter Str sub > and > compare to it's output? > [14:36] rakudo 8292d4: OUTPUT«1␤» > [14:36] <-- justat

[perl #73106] [BUG] Rakudo doesn't handle placeholder parameters quite right

2010-05-22 Thread Carl Mäsak via RT
On Thu Feb 25 16:12:50 2010, masak wrote: > rakudo: my $a = sub { say $^a + $^a }; $a(4); # first of 2 > rakudo a215ee: OUTPUT«Not enough positional parameters > passed; got 1 but expected 2 [...] > rakudo: my $a = sub { say $^a + $^a }; $a(4, 5); # second of 2 > rakudo a215ee: OUTPUT«10␤» > *

[perl #75458] package Foo; does not cause parsefail

2010-06-01 Thread Carl Mäsak via RT
masak: 30 May 19:03Z tell masak : there is no 'package' statement in Perl 6. "package Foo;" is interpreted as meaning "use v5; package Foo;" to allow pure-Perl-5 modules to be used unaltered. STD implements this (partially) sorear: if by 'package statement' you mean 'braceless package dec

[perl #75920] STD doesn't parse "1"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~1

2010-06-22 Thread Carl Mäsak via RT
On Mon Jun 21 07:07:54 2010, pawel.pab...@implix.com wrote: > [16:03] rakudo: say > "1"~1 > [16:03] rakudo c6a829: OUTPUT«1␤» > [16:04] bbkr: parses as "1" ~~ ~(~(~(1))) -- but with more > prefix:<~> > [16:04] std: say > "1"~~~

[perl #75966] [BUG] Strange error when doing 'handles' delegation with a parameter in Rakudo

2010-06-23 Thread Carl Mäsak via RT
rakudo: class A { method foo(|$c) { say $c.perl } }; A.foo rakudo ad2afb: OUTPUT«\()␤» rakudo: class A { method foo(|$c) { say $c.perl } }; A.foo(1) rakudo ad2afb: OUTPUT«Too many positional parameters passed; got 2 but expected 2␤ in 'A::foo' at line 11:/tmp/TE5FBvA4r9 [...] Golfed. * masa

[perl #76202] [BUG] > say <1 2 3>.>>.perl # > say <1 2 3>.>>.perl # Confused at line 1, near "say <1 2 3"

2010-06-30 Thread Carl Mäsak via RT
On Sun Jun 27 14:21:29 2010, cognominal wrote: > > say <1 2 3>.>>.perl > Confused at line 1, near "say <1 2 3" > > say <1 2 3>.>>perl > Confused at line 1, near "say <1 2 3" > > say <1 2 3>>>perl > Confused at line 1, near "say <1 2 3" Only the first of those three is valid syntax, according to ST

[perl #76238] Bool.pick always returns false.

2010-06-30 Thread Carl Mäsak via RT
On Mon Jun 28 11:38:07 2010, markjreed wrote: > That is terribly confusing. I'm tempted to argue for .pick not being > defined on scalar values. > > Do any of the other non-Enumerated types besides Bool have a finite > range? I'd say .pick should return an appropriate random value when > applied

[perl #61846] Is this syntax OK: @a[0..**-1]

2010-06-30 Thread Carl Mäsak via RT
On Tue Dec 30 09:52:07 2008, pmichaud wrote: > On Tue Dec 30 01:47:47 2008, masak wrote: > > Just wondering whether the following syntax, currently accepted by > > Rakudo r34628, is legal Perl 6: > > > > $ perl6 -e 'say ("a".."c").list[0..**-1]' > > abc > > > As of r34652, this now produces an e

[perl #76372] suspicious behavior of multidispatch

2010-07-06 Thread Carl Mäsak via RT
rakudo: multi sub f(@p, Range $r? ) { say 1 }; multi sub f([], Range $r) { say 2 }; f([], 1..2); rakudo d9a5ac: OUTPUT«2␤» rakudo: multi sub f(@p, Range $r?, Bool :$mod ) { say 1 }; multi sub f([], Range $r) { say 2 }; f([], 1..2); rakudo d9a5ac: OUTPUT«Ambiguous dispatch to multi 'f'. Am

[perl #76110] [BUG] Nested triangular reduce produces empty list

2010-07-06 Thread Carl Mäsak via RT
rakudo: say [+] [1,2,3] # bug courtesy of TimToady++ rakudo 04a918: OUTPUT«6␤» * masak submits rakudobug [] should never flatten in a listop masak: the [+] [1, 2, 3] bug might be related to http://rt.perl.org/rt3/Ticket/Display.html?id=76110 * masak looks the final question seems to indicate

[perl #76510] [BUG] =:= doesn't seem to work as spec'd in Rakudo

2010-07-14 Thread Carl Mäsak via RT
What is pir::issame being used for? checking for =:= equivalence, I'd guess. That sounds wrong. =:= means "references the same thingy" right? aye. pretty sure the issame op is not what is wanted then * masak adds that to the ticket

[perl #76510] [BUG] =:= doesn't seem to work as spec'd in Rakudo

2010-07-14 Thread Carl Mäsak via RT
rakudo: my ($a, $b); say $a =:= $a, $a =:= $b rakudo c8b6cf: OUTPUT«10␤» rakudo: sub f($x, $y) { $x =:= $y }; my ($a, $b); say f($a, $a), f($a, $b) rakudo c8b6cf: OUTPUT«00␤» bug? * masak adds that one to the ticket

[perl #69498] [BUG] Null PMC access when calling routines with forward-referring parameters (which shouldn't compile in the first place) in Rakudo

2010-08-01 Thread Carl Mäsak via RT
On Tue Jul 27 19:44:19 2010, coke wrote: > On Wed Sep 30 06:50:05 2009, masak wrote: > > rakudo: sub foo($a = $default, :$default = 42) {}; say > "alive" > > rakudo c8181a: OUTPUT«alive␤» > > std: sub foo($a = $default, :$default = 42) {} > > std 28514: OUTPUT«ok 00:02 104m␤» > > rakudo: sub f

[perl #69176] [BUG] Less than helpful error message when writing %*foo instead of *%foo in parameter list in Rakudo

2010-08-01 Thread Carl Mäsak via RT
On Wed Jul 28 10:01:02 2010, pmichaud wrote: > On Wed Jul 28 07:44:27 2010, coke wrote: > > On Wed Sep 16 14:47:06 2009, masak wrote: > > > $ perl6 -e 'class A { method foo(%*opts) {} }' > > > Invalid twigil used in signature parameter. at line 1, near ") {} }" > > > > > > Suggest making the error

[perl #69010] [BUG] &break outside of topicalizer block should be a compile-time error in Rakudo

2010-08-07 Thread Carl Mäsak via RT
On Tue Aug 03 09:18:48 2010, bbkr wrote: > in * release > > [18:16] rakudo: break > [18:16] rakudo efe72c: OUTPUT«Could not find sub &break␤ in > main program body at line 22:/tmp/3991IK9D0k␤» > > [18:18] std: break > [18:18] std 31897: > OUTPUT«===SORRY!===␤Undeclared rout

[perl #77022] Grammar.parse doesn't anchor to the end of the parsed string

2010-08-07 Thread Carl Mäsak via RT
ekiru (>): > [1:38pm] tylercurtis: rakudo: grammar Foo { token TOP { 'b' } }; say > Foo.parse('abc').Bool; # this is right > [1:38pm] p6eval: rakudo 19931f: OUTPUT«0␤» > [1:38pm] tylercurtis: rakudo: grammar Foo { token TOP { 'b' } }; say > Foo.parse('bc').Bool; # I don't think this is. > [1:38pm]

[perl #77108] my $x = 1 // *; assigns Whatever code

2010-08-09 Thread Carl Mäsak via RT
On Mon Aug 09 06:44:14 2010, pawel.pab...@implix.com wrote: > [15:38] rakudo: my $x = 1 // *; $x.WHAT.say > [15:38] rakudo c1e19a: OUTPUT«WhateverCode()␤» > > > "1" is expected because it's first defined value in assignment. Is there something that makes the C operator be treated specially, so

[perl #77140] [BUG] Nil.defined should probably not return True

2010-08-10 Thread Carl Mäsak via RT
On Tue Aug 10 09:00:25 2010, cognominal wrote: > perl6 > > say Nil.defined > 1 It goes against my expectations too, but it's spec. Rejecting ticket.

  1   2   3   >