Skip to content

Instantly share code, notes, and snippets.

@ab5tract
Created August 12, 2016 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ab5tract/414e6b6cda21d7f167e27b322932fd14 to your computer and use it in GitHub Desktop.
Save ab5tract/414e6b6cda21d7f167e27b322932fd14 to your computer and use it in GitHub Desktop.
OO::Monitors breaks with custom initialization
use v6;
use OO::Monitors;
monitor Grid {
has @!grid;
submethod BUILD() {
@!grid = [23, 42];
}
}
my $g = Grid.new;
dd $g;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment