Skip to content

Commit

Permalink
Mark Scalar as never being repossessed
Browse files Browse the repository at this point in the history
This restores a somewhat dubious, but relied upon, pre-rescalar
behavior. A previous attempt at fixing #2056 led to #2126. Together
with the revert in NQP commit 9fe83eb3e9, the modules in both tickets
now all work.
  • Loading branch information
jnthn committed Aug 14, 2018
1 parent aae0827 commit 2b2f568
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Perl6/Metamodel/BOOTSTRAP.nqp
Expand Up @@ -1581,6 +1581,9 @@ BEGIN {
}));
Scalar.HOW.compose_repr(Scalar);

# To preserve historical behavior, we never repossess a Scalar container.
nqp::neverrepossess(Scalar);

# Scalar needs to be registered as a container type. Also provide the
# slow-path implementation of various container operations.
nqp::setcontspec(Scalar, 'rakudo_scalar', nqp::hash(
Expand Down

0 comments on commit 2b2f568

Please sign in to comment.