Problem with Exceptions in Constructor

Mike Parker aldacron at gmail.com
Sat Jun 12 02:19:21 UTC 2021


On Friday, 11 June 2021 at 20:09:22 UTC, Mike Brown wrote:

>
> The error is flagged on the writeln(e.msg). Do I need to do 
> something special to pass a string to an exception? dup?
>

No, that code is fine. You're passing a string literal, so 
there's no need for a dup.


More information about the Digitalmars-d-learn mailing list