From: ptkwt@...1.aracnet.com (Phil Tomson) Date: 2001-12-01T04:37:23+09:00 Subject: [ruby-talk:27114] Re: thoughts on virtual base classes, interfaces In article <20011130.221455.889023311.1860@zipworld.com.au>, Harry Ohlsen wrote: >In article , "Phil >Tomson" wrote: > >> I could have a 'run' method in runnable that, if not overidden in the >> class Runnable is mixed-into, raises an exception. > >Isn't that redundant, though, since it won't throw the exception unless >you call run() and if you called it and the class that was supposed to >implement it doesn't, then you'd get an exception, anyway? > >Or am I missing something? I guess my point is that either way you've got to document it. Just relying on the exception being raised by Runnable#run is probably not adequate documentation. Phil