opDispatch, duck typing, and error messages

Jacob Carlborg doob at me.com
Sat Apr 23 13:12:32 PDT 2011


On 2011-04-22 01:54, Jonathan M Davis wrote:
>> Jonathan M Davis wrote:
>>> I just checked. Exception _does_ take a default file and line number.
>>
>> Huh, maybe my dmd is getting old.
>>
>> Maybe we should revisit this after the next dmd release. Sounds like
>> one is coming pretty soon with a lot of yummy goodness in it. All
>> of this Exception stuff may be moot.
>
> It was in dmd 2.052. I don't know when the change was made though. I might
> have been the one to change it too. I made several changes a while back to
> make it so that Exception and Error types had default file and line numbers
> (and I actually had to remove several on various Errors, because the way that
> they're actually created makes them not work with default arguments).
>
> - Jonathan M Davis

It would nice to have file and line info available on Mac OS X as well.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list