Thread overview
betterC: does scope exit work with longjmp?
Nov 27, 2020
Dibyendu Majumdar
Nov 27, 2020
Adam D. Ruppe
Nov 27, 2020
Dibyendu Majumdar
Nov 27, 2020
Max Haughton
Nov 28, 2020
Dibyendu Majumdar
Nov 28, 2020
Paul Backus
Nov 28, 2020
Dibyendu Majumdar
November 27, 2020
In betterC mode does scope exit work with longjmp?
If not does it work in full D?
November 27, 2020
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.
November 27, 2020
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
November 27, 2020
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.
November 28, 2020
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.
November 28, 2020
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. :)
November 28, 2020
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.