Skip to content
Permalink
Browse files

Turns out we needed a decont

  • Loading branch information...
lizmat committed May 23, 2019
1 parent f874d79 commit e421e6387c2d152c719c900bd9c8f1a615338905
Showing with 4 additions and 9 deletions.
  1. +4 −9 lib/Profile.pm6
@@ -170,15 +170,10 @@ class Profile {
}

# let objects know about threads and vice-versa
.threads = %!threads for %!objects.values;
.objects = %!objects for %!threads.values;
# This doesn't work :-(
# for %!objects.values -> \object {
# nqp::bindattr(object,Profile::Object,'%!threads',%!threads);
# }
# for %!threads.values -> \thread {
# nqp::bindattr(thread,Profile::Thread,'%!objects',%!objects);
# }
nqp::bindattr(nqp::decont($_),Profile::Object,'%!threads',%!threads)
for %!objects.values;
nqp::bindattr(nqp::decont($_),Profile::Thread,'%!objects',%!objects)
for %!threads.values;

self
}

0 comments on commit e421e63

Please sign in to comment.
You can’t perform that action at this time.