> Are you speaking in terms of limitation, or requirement? > It would be nice to have a syntax solution. I've seen p5 interfaces > with stubs that die so that you have to override them in a subclass. It > works, but seems a little kludgy.
Back in 1988 programming Objective-C under NeXTSTEP you could have a class that does these things (based on methods inherited from Object): - iJustCantSeemToGetAnythingDone { [self notImplemented:_cmd]; // TODO: We'd better write this soon! } - imFeelingAbstract { [self subclassResponsibility:_cmd]; } - bogus { [self error:"Bogon flux exceeds limit %d\n", BOGON_LIMIT]; } Also, there was a doesNotRecognize: method that was called by the runtime system when method lookup failed. I presume you could override it to do nasty things, but I never did that myself. Regards, -- Gregor