[Issue 20394] "one path skips constructor" when exception is thrown
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Fri Nov 15 14:00:09 UTC 2019
    
    
  
https://issues.dlang.org/show_bug.cgi?id=20394
Dennis <dkorpel at live.nl> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dkorpel at live.nl
--- Comment #1 from Dennis <dkorpel at live.nl> ---
An exception represents a recoverable error that can be caught and then you end
up with a partially constructed object.
An assert(0) represents an unrecoverable error, the state of the program
afterwards is undefined so partially constructed objects are possible.
To me the error seems appropriate.
--
    
    
More information about the Digitalmars-d-bugs
mailing list