digitalmars.D.bugs - [Issue 8459] New: std.traits.isSafe definition silently changed
- d-bugmail puremagic.com (39/39) Jul 28 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8459
- d-bugmail puremagic.com (13/13) Jul 28 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8459
- d-bugmail puremagic.com (10/10) Jul 28 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8459
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 --- Comment #0 from klickverbot <code 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: -------
Jul 28 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8459 --- Comment #1 from github-bugzilla puremagic.com 2012-07-28 17:20:37 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/9ca21ef2e7ab25aadd5abc041a683c34ebbbfad2 Fix for issue# 8459. 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 Merge pull request #726 from jmdavis/traits Fix for issue# 8459. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 28 2012
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