[Issue 8459] New: std.traits.isSafe definition silently changed

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jul 28 15:28:46 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8459

           Summary: std.traits.isSafe definition silently changed
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: code at klickverbot.at


--- Comment #0 from klickverbot <code at klickverbot.at> 2012-07-28 15:28:44 PDT ---
The following snipped compiles with DMD 2.059, but doesn't with latest Git
master (after pull #679 was merged):

---
import std.traits;

void safe() @safe;
void trusted() @trusted;
void system() @system;

struct Test
{
    void safe() @safe;
    void trusted() @trusted;
    void system() @system;
}

static assert(isSafe!(safe));
static assert(isSafe!(trusted));
static assert(!isSafe!(system));

Test t;
static assert(isSafe!(t.safe));
static assert(isSafe!(t.trusted));
static assert(!isSafe!(t.system));
----

See https://github.com/D-Programming-Language/phobos/pull/675 for the
discussion – I added it here so it isn't missed when preparing the release.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list