Skip to content

Commit

Permalink
Replaced pir::repr_defined__IP by nqp::isconcrete
Browse files Browse the repository at this point in the history
  • Loading branch information
kboga committed May 30, 2012
1 parent a690c80 commit cbc73a0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Perl6/Metamodel/CurriedRoleHOW.pm
Expand Up @@ -26,7 +26,7 @@ class Perl6::Metamodel::CurriedRoleHOW
my $archetypes_g := Perl6::Metamodel::Archetypes.new( :composable(1), :inheritalizable(1), :parametric(1), :generic(1) );
my $archetypes_ng := Perl6::Metamodel::Archetypes.new( :nominal(1), :composable(1), :inheritalizable(1), :parametric(1) );
method archetypes() {
if pir::repr_defined__IP(self) {
if nqp::isconcrete(self) {
for @!pos_args {
if $_.HOW.archetypes.generic {
return $archetypes_g;
Expand Down
2 changes: 1 addition & 1 deletion src/core/Failure.pm
Expand Up @@ -18,7 +18,7 @@ my class Failure {
# but obscure problems prevent us from making Mu.defined
# a multi. See http://irclog.perlgeek.de/perl6/2011-06-28#i_4016747
method defined() {
$!handled =1 if pir::repr_defined__IP(self);
$!handled =1 if nqp::isconcrete(self);
Bool::False;
}
multi method Bool(Failure:D:) { $!handled = 1; Bool::False; }
Expand Down
2 changes: 1 addition & 1 deletion src/core/Mu.pm
Expand Up @@ -39,7 +39,7 @@ my class Mu {
method not() { self ?? False !! True }

method defined() {
nqp::p6bool(pir::repr_defined__IP(self))
nqp::p6bool(nqp::isconcrete(self))
}

proto method new(|$) { * }
Expand Down

0 comments on commit cbc73a0

Please sign in to comment.