Let's improve D's exceptions

Kagamin via Digitalmars-d digitalmars-d at puremagic.com
Thu May 14 07:26:14 PDT 2015


On Thursday, 14 May 2015 at 12:39:59 UTC, Adam D. Ruppe wrote:
> On Thursday, 14 May 2015 at 10:29:57 UTC, Kagamin wrote:
>> Maybe also replace file name with ModuleInfo similar to how 
>> assert works?
>
> Those bug me because all it really wants from it is the name 
> and then you need all the moduleinfo even in bare metal.

AFAIK, ModuleInfo is only 8 bytes + module name.

> Exception support requires some RTTI anyway so maybe it doesn't 
> matter, but my playing with bare metal has made me really 
> prefer the filename versions over the moduleinfo versions...

ModuleInfo is primarily to extract module name and use it instead 
of file name, you can use module name directly if you don't like 
full ModuleInfo.


More information about the Digitalmars-d mailing list