Sub-classing exceptions

Shriramana Sharma via Digitalmars-d digitalmars-d at puremagic.com
Thu Oct 15 18:52:09 PDT 2015


Jonathan M Davis wrote:

> On Thursday, 15 October 2015 at 18:07:24 UTC, Shriramana Sharma
> wrote:
>> So, any thoughts? Any way this could be improved? Would be nice
>> if that mixin got into the standard library somehow...
> 
> Writing a mixin to create a standard constructor for exception
> types is trivial. The problem is that you can't document code
> that's mixed in. So, the constructors wouldn't end up in the
> documentation. And while it's a bit annoying, copy-pasting the
> two standard constructors for exceptions is pretty trivial.

Can't we just include the /++ +/ block within the Wysiwyg string in the 
mixin? Does DDoc not process mixins?

Shriramana Sharma.


More information about the Digitalmars-d mailing list