- S32-exceptions/misc.rakudo.moar 495 - right exception type (X::Method::NotFound)
- S32-exceptions/misc.rakudo.moar 532 - right exception type (X::TypeCheck::Binding)
- S32-exceptions/misc.rakudo.moar 536 - right exception type (X::TypeCheck::Return)
- S32-exceptions/misc.rakudo.moar 540 - right exception type (X::TypeCheck::Assignment)
- S32-exceptions/misc.rakudo.moar 545 - right exception type (X::Assignment::RO)
- S32-exceptions/misc.rakudo.moar 575 - right exception type (X::ControlFlow)
- S32-exceptions/misc.rakudo.moar 589 - right exception type (X::ControlFlow::Return)
- S32-exceptions/misc.rakudo.moar 611 - nextsame in proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=begin pod | |
=TITLE Things Rakudo Should Be Able to Do or Ought to Have | |
My personal TODO list, things that other people haven't already picked up to work on | |
=begin item | |
Ecosystem stuff | |
=item Slang::Indent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/type-graph.txt b/type-graph.txt | |
index 0c56466..077dd24 100644 | |
--- a/type-graph.txt | |
+++ b/type-graph.txt | |
@@ -152,11 +152,6 @@ role TypedArray[::TValue] does Positional[TValue] | |
# Collections: Associative | |
role Associative[::T = Mu] | |
-role Baggy | |
-class Bag is Iterable does Associative does Baggy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use v6; | |
# Partial solution to https://codegolf.stackexchange.com/questions/20957 | |
enum 数 <零 一 二 三 四 五 六 七 八 九 十>; | |
sub infix:<加> (\第一, \第二) { 第一 + 第二 } | |
sub infix:<减> (\第一, \第二) { 第一 - 第二 } | |
sub infix:<乘以> (\第一, \第二) { 第一 * 第二 } | |
sub infix:<除以> (\第一, \第二) { 第一 / 第二 } | |
sub infix:<等于> (\第一, \第二) { 第一 == 第二 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RT61918 { | |
has $.inst is rw; | |
has $!priv is rw; | |
has $.string = 'krach'; | |
method init { | |
$.inst = [ rand, rand ]; | |
$!priv = [ rand, rand ].perl; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
say("+123.456e10" ~~ / | |
:my token SIGN { <[+-]> } | |
:my token MANTISSA { \d+ '.'? \d* | '.' \d+ } | |
:my token EXPONENT { <[eE]> <SIGN>? \d+ } | |
<SIGN>? <MANTISSA> <EXPONENT>? | |
/) | |
# ∂ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Makefile code generated by Configure.pl: | |
all: j-all m-all m-runner-default | |
install: j-install m-install m-runner-default-install | |
clean: j-clean m-clean | |
test: j-test m-test | |
spectest: j-spectest m-spectest | |
coretest: j-coretest m-coretest | |
# Generated from tools/build/Makefile-common.in | |
# Copyright (C) 2006-2013, The Perl Foundation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use v6; | |
use MONKEY_TYPING; | |
augment class Str { | |
method xml ($name : *@content, *%attrs) { | |
~ "<$name"~%attrs.kv.map({" $^a='$^b'"}).join~">\n" | |
~ @content.map(*~"\n").join.indent(4) | |
~ "</$name>" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/core/interp.c b/src/core/interp.c | |
index 5d8f0d5..12f19af 100644 | |
--- a/src/core/interp.c | |
+++ b/src/core/interp.c | |
@@ -3234,10 +3234,12 @@ void MVM_interp_run(MVMThreadContext *tc, void (*initial_invoke)(MVMThreadContex | |
cur_op += 4; | |
goto NEXT; | |
OP(getstdin): | |
+ printf("getstdin error before? %s\n", strerror(errno)); | |
if (!tc->instance->stdin_handle) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[amoquin:rakudo]$ perl Configure.pl --backends=moar --prefix=/usr/local [moar-support] | |
Using /usr/local/bin/nqp-m (version 2013.12.1-8-gcd0db4e / MoarVM 2013.10-280-gd4fc809). | |
Cleaning up ... | |
You can now use 'make' to build Rakudo. | |
After that, 'make test' will run some tests and | |
'make install' will install Rakudo. | |
[amoquin:rakudo]$ make install [moar-support] | |
perl tools/build/gen-cat.pl moar src/vm/moar/ModuleLoaderVMConfig.nqp src/Perl6/ModuleLoader.nqp > src/gen/m-ModuleLoader.nqp | |
/usr/local/bin/nqp-m --target=mbc --output=blib/Perl6/ModuleLoader.moarvm --encoding=utf8 \ |