On 5/14/07, Jason Elbaum <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
http://gaal.livejournal.com/
_______________________________________________
Perl mailing list
[email protected]
http://perl.org.il/mailman/listinfo/perl

Reply via email to