[Issue 4221] New: dmd should not allow overload between @safe/@trusted and @system

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat May 22 19:31:22 PDT 2010


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

           Summary: dmd should not allow overload between @safe/@trusted
                    and @system
           Product: D
           Version: 2.041
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: zan77137 at nifty.com


--- Comment #0 from SHOO <zan77137 at nifty.com> 2010-05-22 19:31:22 PDT ---
I tried to apply @safe/@trusted/@system to Phobos.
See also http://lists.puremagic.com/pipermail/phobos/2010-May/000488.html
I found this issue there.

Document says "Functions are overloaded based on how well the arguments to a
function can match up with the parameters."
But @safe functions can overload between @system functions, though @safe is
unrelated to parameters.
It's enough to have only @safe function.

-- 
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