in reply to Re: You cannot pass args when calling inner() in Moose?
in thread You cannot pass args when calling inner() in Moose?
But if you could pass arguments, you'd break the sub create {my $self = shift;... paradigmYes, you have a point. I'm starting to see that Moose corrals you into keeping things in attributes instead of passing values around.
Ah nice. But there is a problem. There is not always an inner class... The superclass can be instatiated and run just fine if you dont plan to use perl/gtk to give GUI feedback on data processing. The inner call should only be called if ref $self ne __PACKAGE__for my $item (@item) { $self->i(++$i); inner(); }
Alternatively, I could always never run the superclass directly and have ::Gtk2 subclass as well as a ::PlainText subclass.
-- Terence Parr, "Enforcing Strict Model View Separation in Template Engines"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: You cannot pass args when calling inner() in Moose?
by kennethk (Abbot) on Jul 21, 2011 at 17:23 UTC | |
by metaperl (Curate) on Jul 21, 2011 at 19:03 UTC |