Thread overview
[Issue 24010] Destructor called before end of scope for tuples
Jun 26, 2023
Walter Bright
Jun 27, 2023
Boris Carvajal
Jun 27, 2023
Boris Carvajal
Jun 27, 2023
Dlang Bot
Jun 29, 2023
Dlang Bot
Jun 30, 2023
Dlang Bot
June 22, 2023
https://issues.dlang.org/show_bug.cgi?id=24010

johanengelen@weka.io changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |industry

--
June 24, 2023
https://issues.dlang.org/show_bug.cgi?id=24010

--- Comment #1 from johanengelen@weka.io ---
The problem seems to be that the frontend treats/sets up the tuple as a temporary variable (valid for the duration of that expression only), instead of generating the ~this() calls at end of scope like it does for normal variables.

--
June 26, 2023
https://issues.dlang.org/show_bug.cgi?id=24010

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> ---
You're right. I'll look into why this is happening.

--
June 27, 2023
https://issues.dlang.org/show_bug.cgi?id=24010

Boris Carvajal <boris2.9@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |japplegame@gmail.com

--- Comment #3 from Boris Carvajal <boris2.9@gmail.com> ---
*** Issue 17128 has been marked as a duplicate of this issue. ***

--
June 27, 2023
https://issues.dlang.org/show_bug.cgi?id=24010

Boris Carvajal <boris2.9@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |destructionator@gmail.com

--- Comment #4 from Boris Carvajal <boris2.9@gmail.com> ---
*** Issue 20135 has been marked as a duplicate of this issue. ***

--
June 27, 2023
https://issues.dlang.org/show_bug.cgi?id=24010

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
@BorisCarvajal created dlang/dmd pull request #15351 "Fix Issue 24010 - Destructor called before end of scope for tuples" fixing this issue:

- Fix Issue 24010 - Destructor called before end of scope for tuples

https://github.com/dlang/dmd/pull/15351

--
June 29, 2023
https://issues.dlang.org/show_bug.cgi?id=24010

--- Comment #6 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright created dlang/dmd pull request #15366 "fix Issue 24010 - Destructor called before end of scope for tuples" fixing this issue:

- fix Issue 24010 - Destructor called before end of scope for tuples

https://github.com/dlang/dmd/pull/15366

--
June 30, 2023
https://issues.dlang.org/show_bug.cgi?id=24010

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #15351 "Fix Issue 24010 - Destructor called before end of scope for tuples" was merged into master:

- 597e133324fac8c1ded4d93186969727fd095fa7 by Boris Carvajal:
  Fix Issue 24010 - Destructor called before end of scope for tuples

  Co-authored-by: Walter Bright <walter@walterbright.com>

https://github.com/dlang/dmd/pull/15351

--