www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Exceptions without GC/Dynamic allocation. New proposal from Herb

reply Ben Jones <fake fake.fake> writes:
I think similar ideas have been discussed around here before 
(https://forum.dlang.org/thread/stlslhjndgugecvmbowd forum.dlang.org) but
here's a new C++ proposal for overhauling their exception system to avoid
dynamic allocation for exceptions.  I guess it's not surprising that they're
dealing with similar issues for exception handing as the D community.

I didn't dig too deep,  but it looks like a pretty reasonable 
approach, except for requiring extra annotations for exceptions 
specification.

Here's the r/cpp thread where they're discussing the paper (with 
a link): 
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0709r0.pdf
May 13 2018
parent Uknown <sireeshkodali1 gmail.com> writes:
On Sunday, 13 May 2018 at 17:21:28 UTC, Ben Jones wrote:
 I think similar ideas have been discussed around here before 
 (https://forum.dlang.org/thread/stlslhjndgugecvmbowd forum.dlang.org) but
here's a new C++ proposal for overhauling their exception system to avoid
dynamic allocation for exceptions.  I guess it's not surprising that they're
dealing with similar issues for exception handing as the D community.
 [...]
Worth mentioning that DIP 1008 makes exceptions Ref-counted instead of GC managed, so exceptions can now be nogc in D
May 13 2018