Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a missing bit of circularity sawing for Str. This may well have b…
…een at the heart of many of the not-fun-to-track-down infinite recursions related to stringification when compiling CORE.setting.
  • Loading branch information
jnthn committed Jul 21, 2012
1 parent aff12ef commit e6609f3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Perl6/Metamodel/BOOTSTRAP.pm
Expand Up @@ -637,6 +637,10 @@ BEGIN {
Str.HOW.add_attribute(Str, BOOTSTRAPATTR.new(:name<$!value>, :type(str), :box_target(1), :package(Str)));
Str.HOW.set_boolification_mode(Str, 4);
Str.HOW.publish_boolification_spec(Str);
Str.HOW.add_parrot_vtable_mapping(Str, 'get_string',
static(sub ($self) {
nqp::unbox_s($self)
}));

# class Int is Cool {
# has int $!value is box_target;
Expand Down Expand Up @@ -903,6 +907,7 @@ Submethod.HOW.publish_parrot_vtable_mapping(Submethod);
Regex.HOW.publish_parrot_vtable_handler_mapping(Regex);
Regex.HOW.publish_parrot_vtable_mapping(Regex);
Stash.HOW.publish_parrot_vtable_handler_mapping(Stash);
Stash.HOW.publish_parrot_vtable_handler_mapping(Str);

# Set up various type mappings.
pir::perl6_set_type_packagehow__vP(Perl6::Metamodel::PackageHOW);
Expand Down

0 comments on commit e6609f3

Please sign in to comment.