FAQ
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'

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 4 | next ›
Discussion Overview
groupperl6-compiler @
categoriesperl
postedMay 28, '16 at 10:34a
activeMay 29, '16 at 3:18p
posts4
users1
websiteperl6.org

1 user in discussion

Sam S. via RT: 4 posts

People

Translate

site design / logo © 2019 Grokbase