Moritz Lenz wrote:
Rakudo doesn't build on parrot HEAD since the CallSignature +
CallContext merge (or whatever it was called), so it's kinda hard to
figure out if there are any parrot bugs affecting Rakudo.
Try this patch. It should work.
--
Bacek
diff --git a/src/binder/bind.c b/src/binder/bind.c
index 89074fe..6584119 100644
--- a/src/binder/bind.c
+++ b/src/binder/bind.c
@@ -410,11 +410,11 @@ Rakudo_binding_bind_signature(PARROT_INTERP, PMC *lexpad, PMC *signature,
}
}
- /* If we've got a CallSignature, just has an attribute with list of named
+ /* If we've got a CallContext, just has an attribute with list of named
* parameter names. Otherwise, it's a Capture and we need to do .hash and
* grab out the keys. */
- if (capture->vtable->base_type == enum_class_CallSignature ||
- VTABLE_isa(interp, capture, string_from_literal(interp, "CallSignature"))) {
+ if (capture->vtable->base_type == enum_class_CallContext ||
+ VTABLE_isa(interp, capture, string_from_literal(interp, "CallContext"))) {
named_names = VTABLE_get_attr_str(interp, capture, string_from_literal(interp, "named"));
}
else if (VTABLE_isa(interp, capture, string_from_literal(interp, "Capture"))) {
diff --git a/src/ops/perl6.ops b/src/ops/perl6.ops
index 70401d3..9b735e8 100644
--- a/src/ops/perl6.ops
+++ b/src/ops/perl6.ops
@@ -10,7 +10,7 @@ BEGIN_OPS_PREAMBLE
#include "parrot/dynext.h"
#include "pmc_object.h"
#include "pmc_class.h"
-#include "pmc_callsignature.h"
+#include "pmc_callcontext.h"
#include "../pmc/pmc_p6lowlevelsig.h"
#include "../binder/bind.h"
@@ -597,7 +597,7 @@ inline op get_signature_elem(in PMC, in INT, out STR, out INT, out PMC, out PMC,
This is emitted into a sub to cause it's Perl 6 signature to be bound. $1 is
an array of positional arguments (obtained by using :flat) and $2 is a hash of
named arguments (obtained using :flat :slurpy). Eventually, after Parrot
-refactors are complete, it will take one argument - the CallSignature.
+refactors are complete, it will take one argument - the CallContext.
=cut
_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-dev