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?
In reply to Re^4: Object Method Call
by AnomalousMonk
in thread Object Method Call
by bkv2k
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |