Daniel Keep Wrote: > > > Steve Teale wrote: > > Daniel Keep Wrote: > > > >> > >> Steve Teale wrote: > >>> ... > >>> > >>> What is the point of class Throwable if you can throw any old class > >>> object? > >> What class Throwable? > > > > dmd\src\druntime\src\compiler\dmd\object_.d > > > >> -- Daniel > > Ah. > > Well, if I had to guess, I'd say it was because Throwable objects are > more useful than random objects of other types. Object doesn't give you > msg, file, line, info or next. > > -- Daniel
But doesn't it rather imply that if you want to be able to throw a class, then it should be derived from Throwable?
