Skip to content

Instantly share code, notes, and snippets.

@wildwildtrees
wildwildtrees / ootut2.pm6
Created March 18, 2020 18:46
bug free, but bugs out when follow is called with "Cannot invoke this object (REPR: Null; VMNull)" if I change self.id to self!id in method follow in role Follow line 52
our %world = {} ;
role Identifier {
has $.id is rw ;
}
role Container {
has @.contents is rw ;
method add($item) {
@!contents.push($item) ;