Jump to page: 1 2
Thread overview
[Issue 18407] debug should escape nothrow, @nogc, @safe (not just pure)
Feb 09, 2018
Timothee Cour
Feb 09, 2018
Timothee Cour
Feb 09, 2018
Timothee Cour
Feb 09, 2018
Seb
Feb 09, 2018
Seb
Feb 14, 2018
Seb
Feb 14, 2018
Timothee Cour
Feb 15, 2018
Walter Bright
Feb 27, 2018
anonymous4
Jul 03, 2018
Seb
[Issue 18407] debug should escape nothrow
Jul 03, 2018
Seb
Feb 28, 2019
Dlang Bot
Jul 03, 2020
Dlang Bot
February 09, 2018
https://issues.dlang.org/show_bug.cgi?id=18407

Timothee Cour <timothee.cour2@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |timothee.cour2@gmail.com
            Summary|debug should escape nothrow |debug should escape
                   |@nogc safe (not just pure)  |nothrow, @nogc, @safe (not
                   |                            |just pure)

--
February 09, 2018
https://issues.dlang.org/show_bug.cgi?id=18407

--- Comment #1 from Timothee Cour <timothee.cour2@gmail.com> ---
related forum threads:
* option -ignore_pure for temporary debugging (or how to wrap an unpure
function inside a pure one)?
* Should debug{} allow GC?
* Debug prints in @nogc

--
February 09, 2018
https://issues.dlang.org/show_bug.cgi?id=18407

--- Comment #2 from Timothee Cour <timothee.cour2@gmail.com> ---
workaround suggested here by Adam Ruppe:
 https://forum.dlang.org/post/ojgxdtqodcamkqcrxgqc@forum.dlang.org
```
void foo() {}

@trusted nothrow @nogc void da(scope void delegate() a) {
        auto hack = cast(void delegate() @nogc) a;
        try
        hack();
        catch(Exception e)
                assert(0, e.msg);
}

@safe nothrow @nogc pure void main() {
        debug da({foo();});
}
```

--
February 09, 2018
https://issues.dlang.org/show_bug.cgi?id=18407

Seb <greensunny12@gmail.com> changed:

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

--- Comment #3 from Seb <greensunny12@gmail.com> ---
> related forum threads:

Please use the actual links - it's a lot easier for people to find the threads then.

https://forum.dlang.org/post/mailman.3228.1518060762.9493.digitalmars-d@puremagic.com https://forum.dlang.org/post/wawqjpeesxxasfukbpwf@forum.dlang.org https://forum.dlang.org/post/mailman.5.1473579980.2994.digitalmars-d@puremagic.com https://forum.dlang.org/post/eiifgqvoimbtkgcwfiiy@forum.dlang.org

--
February 09, 2018
https://issues.dlang.org/show_bug.cgi?id=18407

--- Comment #4 from Seb <greensunny12@gmail.com> ---
Potential duplicate: 16492

--
February 14, 2018
https://issues.dlang.org/show_bug.cgi?id=18407

Seb <greensunny12@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |preapproved

--- Comment #5 from Seb <greensunny12@gmail.com> ---
This has been approved by Walter and is already in master for @nogc: https://github.com/dlang/dmd/pull/7882

--
February 14, 2018
https://issues.dlang.org/show_bug.cgi?id=18407

--- Comment #6 from Timothee Cour <timothee.cour2@gmail.com> ---
> This has been approved by Walter
including for remaining ones? (nothrow safe)

--
February 15, 2018
https://issues.dlang.org/show_bug.cgi?id=18407

Walter Bright <bugzilla@digitalmars.com> changed:

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

--- Comment #7 from Walter Bright <bugzilla@digitalmars.com> ---
spec: https://github.com/dlang/dlang.org/pull/2209

--
February 27, 2018
https://issues.dlang.org/show_bug.cgi?id=18407

anonymous4 <dfj1esp02@sneakemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |spec
           Hardware|x86                         |All
                 OS|Mac OS X                    |All

--
July 03, 2018
https://issues.dlang.org/show_bug.cgi?id=18407

Seb <greeenify@gmail.com> changed:

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

--- Comment #8 from Seb <greeenify@gmail.com> ---
WIP PR for nothrow: https://github.com/dlang/dmd/pull/8449

--
« First   ‹ Prev
1 2