in reply to Re^3: Object Method Call
in thread Object Method Call
So, one could say that display($self) breaks inheritance.It certainly does that if display is a method.
This is often bad, but sometimes, it can be a useful trick.Hm. Well, I would agree with the word bad, but I think I would delete often unless the goal of the trick is to confuse the heck out of yourself and everyone else. For me, it's hard enough to keep everything in OO programming straight without deliberately trying to trick myself.
I'm curious: Can you give an example of how this trick might be productively used?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Object Method Call
by afoken (Chancellor) on Jul 27, 2009 at 19:33 UTC | |
by AnomalousMonk (Archbishop) on Jul 28, 2009 at 06:55 UTC |