You have circular dependency between your two modules. That's not allowed.

In Bug/Acceptor.pm, instead of doing `use Bug::Visitor;`, predeclare it instead 
using `class Bug::Visitor {...}`. (Yes, those are three literal dots in the 
source code.)

---

I'm leaving the ticket open for now, because I don't know if the cyclic 
dependency should be detected by the compiler. Currently, it just keeps eating 
more and more RAM until the kernel kills the program.

Minimalist test case to reproduce the problem:

    ➜  echo "use B;" > A.pm
    ➜  echo "use A;" > B.pm
    ➜  perl6 -I. -e 'use A'


Reply via email to