[OT] - C++ exceptions are becoming more and more problematic

IGotD- nise at nise.com
Wed Feb 23 17:29:10 UTC 2022


On Wednesday, 23 February 2022 at 16:37:34 UTC, rikki cattermole 
wrote:
>
> Okay that is easily rectified, we simply allow inheriting from 
> the function body, not just called functions ;)
>
> The reason it must support be declared in some form (which is 
> how it is also represented in the AST) is due to it being value 
> type. Its like as if you put a algebraic type for the return 
> value with your declared return value + what can be thrown from 
> it.

You have a point there but it kind of depends what the design 
looks like. For example if only one system wide structure is used 
for value exceptions then you don't need to declare it for every 
function.


More information about the Digitalmars-d mailing list