May 23, 2010 [Issue 4221] New: dmd should not allow overload between @safe/@trusted and @system | ||||
---|---|---|---|---|
| ||||
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@puremagic.com ReportedBy: zan77137@nifty.com --- Comment #0 from SHOO <zan77137@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: ------- |
Copyright © 1999-2021 by the D Language Foundation