www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8459] New: std.traits.isSafe definition silently changed

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: code klickverbot.at



---
The following snipped compiles with DMD 2.059, but doesn't with latest Git


---
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: -------
Jul 28 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8459




Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/9ca21ef2e7ab25aadd5abc041a683c34ebbbfad2


isTrusted and isSafelyCallable have been removed. isSafe now checks for
both  safe and  trusted again (but correctly now).

https://github.com/D-Programming-Language/phobos/commit/0a5c88daf3e0d552f1296095e80564d016474018




-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 28 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8459


Jonathan M Davis <jmdavisProg gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jmdavisProg gmx.com
         Resolution|                            |FIXED


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