- From: <bugzilla@jessica.w3.org>
- Date: Tue, 07 Jun 2011 23:57:25 +0000
- To: public-script-coord@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12845 --- Comment #17 from Allen Wirfs-Brock <allen@wirfs-brock.com> 2011-06-07 23:57:24 UTC --- (In reply to comment #15) > Are there good situations where you'd really want to override with incompatible > behavior? It's a pretty common situation to start with a class that defines mutable instances and then discover that you need to make a variation with immutable instances. In a perfect would you would refactor and make the mutable class inherit from the immutable class. But if you aren't allowed to do that refactoring (eg, you don't control the framework) you may expediently make the immutable version a sublass of the mutable version and over-ride all the mutation method to throw an error or perhaps silently do nothing. Either of these is probably an incompatible behavior from the perspective of the original class specification. -- Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
Received on Tuesday, 7 June 2011 23:57:30 UTC