www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - betterC: does scope exit work with longjmp?

reply Dibyendu Majumdar <mobile majumdar.org.uk> writes:
In betterC mode does scope exit work with longjmp?
If not does it work in full D?
Nov 27 2020
next sibling parent reply Adam D. Ruppe <destructionator gmail.com> writes:
On Friday, 27 November 2020 at 19:28:38 UTC, Dibyendu Majumdar 
wrote:
 In betterC mode does scope exit work with longjmp?
 If not does it work in full D?
longjmp always bypasses scope exit, struct dtors, etc.
Nov 27 2020
parent Dibyendu Majumdar <mobile majumdar.org.uk> writes:
On Friday, 27 November 2020 at 19:33:24 UTC, Adam D. Ruppe wrote:
 On Friday, 27 November 2020 at 19:28:38 UTC, Dibyendu Majumdar 
 wrote:
 In betterC mode does scope exit work with longjmp?
 If not does it work in full D?
longjmp always bypasses scope exit, struct dtors, etc.
Okay thanks
Nov 27 2020
prev sibling parent reply Max Haughton <maxhaton gmail.com> writes:
On Friday, 27 November 2020 at 19:28:38 UTC, Dibyendu Majumdar 
wrote:
 In betterC mode does scope exit work with longjmp?
 If not does it work in full D?
Could you put your questions in the learn section please.
Nov 27 2020
parent reply Dibyendu Majumdar <mobile majumdar.org.uk> writes:
On Friday, 27 November 2020 at 20:32:22 UTC, Max Haughton wrote:
 On Friday, 27 November 2020 at 19:28:38 UTC, Dibyendu Majumdar 
 wrote:
 In betterC mode does scope exit work with longjmp?
 If not does it work in full D?
Could you put your questions in the learn section please.
My questions are to do with understanding the D specification.
Nov 28 2020
parent reply Paul Backus <snarwin gmail.com> writes:
On Saturday, 28 November 2020 at 15:17:48 UTC, Dibyendu Majumdar 
wrote:
 On Friday, 27 November 2020 at 20:32:22 UTC, Max Haughton wrote:
 Could you put your questions in the learn section please.
My questions are to do with understanding the D specification.
...and are therefore appropriate for the Learn forum. It's called "Learn" and not "Beginners" for a reason--even the most experienced among us still have new things to learn. :)
Nov 28 2020
parent Dibyendu Majumdar <mobile majumdar.org.uk> writes:
On Saturday, 28 November 2020 at 15:37:13 UTC, Paul Backus wrote:
 On Saturday, 28 November 2020 at 15:17:48 UTC, Dibyendu 
 Majumdar wrote:
 On Friday, 27 November 2020 at 20:32:22 UTC, Max Haughton 
 wrote:
 Could you put your questions in the learn section please.
My questions are to do with understanding the D specification.
...and are therefore appropriate for the Learn forum. It's called "Learn" and not "Beginners" for a reason--even the most experienced among us still have new things to learn. :)
I understand and I do post questions there too, but when it seems more about how D is designed to work, I ask here.
Nov 28 2020