Any way to create derived classes from Exception with canned messages?
Jeremy T. Gibson
jtgibson at telus.net
Sat Jul 31 13:55:41 UTC 2021
On Saturday, 31 July 2021 at 11:30:06 UTC, Adam D Ruppe wrote:
> On Saturday, 31 July 2021 at 08:25:56 UTC, Jeremy T. Gibson
> wrote:
>> Now,
>> https://github.com/dlang/druntime/blob/master/src/object.d
>> clearly expresses that the constructors of Exception are @nogc.
>
> That doesn't mean your constructors have to be! You can do
> whatever you want. Constructors aren't an inherited interface.
Hah! I knew it was something simple. I should have guessed,
when I was being shouted at when I tried to use the "override"
keyword (obviously they're not virtual either), that I was
approaching it all wrong.
More information about the Digitalmars-d-learn
mailing list