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
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?
/ + /
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
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". :)
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
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
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
.contains turned out to be a fossil from the time between .exists and
:exists. Rejecting bug.
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
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
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
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 $
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
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
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
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
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 (*@
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
>
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() [...]
$.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
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
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. :)
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
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++
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)
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
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
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
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
masak: 65740 is closable now I think
* masak checks
rakudo: run('./perl6 -e "die q[OH NOES]" > /dev/null')
rakudo 120364: OUTPUT«OH NOESin Main (:1)»
rakudo: run('./perl6 -e "die q[OH NOES]" 2>/dev/null')
rakudo 120364: ( no output )
seems fine to me.
* masak closes
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
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
Muixirt++ sent a patch, and now it works. Resolving ticket.
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
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
Yes, this one was probably a false alarm; rejecting.
Another way to accomplish this:
rakudo: my $a = $_ given $a
rakudo 5c065e: OUTPUT«Null PMC access in isa() [...]
* masak submits rakudobug
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
I can no longer reproduce this problem locally. Resolving ticket.
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:<+
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.
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
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
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
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++.
This now works in latest Rakudo:
rakudo: role A {}; say A ~~ Role
rakudo e02bc0: OUTPUT«1»
Assigning to KyleHa++ for spectesting.
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
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
> argsin 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
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
This is fixed nowadays. Resolving ticket.
This works now:
$ perl6 -e 'say %*ENV.exists()'
0
$ perl6 -e 'say defined %*ENV'
0
Resolving.
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
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
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
Moritz (>):
> This now produces:
>
> 22:38 <@moritz_> rakudo: for 1,2,3,4,5 -> $a, $? { say $a }
> 22:38 <+p6eval> rakudo 6a43a3: OUTPUT«13StopIterationin 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,
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
> > argsin sub foo [...]
> > it doesn't say the name of the arg that cause the error, o
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[]]
>
Rejected by request. See #71456 instead.
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
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.
$
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
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
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
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
rakudo: say 0.
00
rakudo 5e5969: OUTPUT«Divide by zerocurrent instr.:
'infix:' [...]
nice! 3 different bugs
the exact error changes with the number of extra 0's you have!
rakudo: say 0.000
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.
This particular parsefail doesn't occur anymore in ng. Resolving ticket.
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++
Ranges are now immutable in master. Resolving ticket.
The particular circumstances involved in this ticket are resolved. (But see
[perl #73688].)
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
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
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
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
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
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
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'
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 :
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.
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
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}},
[...] (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
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
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»
> *
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
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"~~~
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
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
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
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
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
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
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
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
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
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
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«[31m===[0mSORRY![31m===[0mUndeclared rout
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]
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
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 - 100 of 281 matches
Mail list logo