[Israel.pm] Perl and Debugging question
Gaal Yahas
gaal at forum2.org
Mon May 14 13:27:38 EEST 2007
On 5/14/07, Jason Elbaum <jason.elbaum at gmail.com> wrote:
> > What I'm advocating is to put "how to print me" responsibility in the object,
> > not the printer.
>
> Aah, but maybe if there were a conventional way for an object to tell
> the debugger, "this is how to print me"?
Certainly: the object could "do" the Dumpable Role, and "x" would
invoke its "to_dump" method, with all configuration coming from the
Role, possibly overridden by the class, possibly overridden by the
instance, possibly overridden by debugger options, possibly overridden
by some x-command-line modifiers.
--
Gaal Yahas <gaal at forum2.org>
http://gaal.livejournal.com/
More information about the Perl
mailing list