Skip to content

Commit

Permalink
Have to use bless here.
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Aug 28, 2012
1 parent affed06 commit 5997f93
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/TclLexPad.pm
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@ class TclLexPad {
}

method newpad($outer?) {
self := self.new;
$!outer := $outer // self;
$!depth := $outer ?? $outer.depth + 1 !! 0;
self;
my $outerP := $outer // self;
my $depthP := $outer ?? $outer.depth + 1 !! 0;
self.bless(self.CREATE(), :outer($outerP), depth($depthP));
}

method depth() { $!depth }
Expand Down

0 comments on commit 5997f93

Please sign in to comment.