Skip to content

Commit

Permalink
Kill off the PARAMETERIZE_TYPE hack.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Mar 12, 2015
1 parent 9f637e7 commit 9ef86e6
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/Perl6/Metamodel/ClassHOW.nqp
Expand Up @@ -51,18 +51,6 @@ class Perl6::Metamodel::ClassHOW
$obj
}

method parameterize($obj, *@pos_args, *%named_args) {
# XXX This mechanism may well change. For now we pass these along
# to a PARAMETERIZE_TYPE method on the object if it has one. If
# not, we complain.
if nqp::can($obj, 'PARAMETERIZE_TYPE') {
$obj.PARAMETERIZE_TYPE(|@pos_args, |%named_args)
}
else {
nqp::die("Type " ~ self.name($obj) ~ " cannot accept type arguments")
}
}

# Adds a new fallback for method dispatch. Expects the specified
# condition to have been met (passes it the object and method name),
# and if it is calls $calculator with the object and method name to
Expand Down

0 comments on commit 9ef86e6

Please sign in to comment.