[Issue 24614] Can’t throw in -betterC mode with -preview=dip1008 (@nogc Exceptions)
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon Jun 17 11:31:46 UTC 2024
    
    
  
https://issues.dlang.org/show_bug.cgi?id=24614
Richard (Rikki) Andrew Cattermole <alphaglosined at gmail.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |alphaglosined at gmail.com
         Resolution|---                         |WONTFIX
--- Comment #1 from Richard (Rikki) Andrew Cattermole <alphaglosined at gmail.com> ---
D classes depend upon druntime.
Runtime exceptions ala ``Throwable`` hierarchy depend upon druntime.
As of right now this is expected and correct behavior for runtime exceptions to
not work in -betterC.
There is a high desire to see some variant of value based sumtype returns in
the language hooked into ``throw`` and ``catch`` that do not depend upon
druntime, however that is not currently in the DIP queue due to a dependency
upon sumtypes.
--
    
    
More information about the Digitalmars-d-bugs
mailing list