What is throwable

Daniel Keep daniel.keep.lists at gmail.com
Thu Mar 19 02:47:27 PDT 2009



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



More information about the Digitalmars-d mailing list