Skip to content

Instantly share code, notes, and snippets.

@am0c
Created October 19, 2012 06:30
Show Gist options
  • Save am0c/3916541 to your computer and use it in GitHub Desktop.
Save am0c/3916541 to your computer and use it in GitHub Desktop.
Perl6 bug or not?
am0c@amolap:~/local/pt$ cat MainWindow.pm
use Listener;
class MainWindow {
has Listener $.listener;
}
am0c@amolap:~/local/pt$ cat Listener.pm
use MainWindow;
class Listener {
has MainWindow $.app;
}
am0c@amolap:~/local/pt$ cat test.pl
use v6;
use MainWindow;
MainWindow.new;
am0c@amolap:~/local/pt$ perl6 -I. test.pl
===SORRY!===
Circular module loading detected involving module 'MainWindow'
am0c@amolap:~/local/pt$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment