[Issue 7322] New: Taking address of deprecated functions isn't refused
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 19 11:23:33 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7322
Summary: Taking address of deprecated functions isn't refused
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Keywords: accepts-invalid, diagnostic
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2012-01-19 11:23:32 PST ---
In DMD 2.058head std.string.rjustify is deprecated, so this program:
import std.string;
void main() {
rjustify!string("hello", 10);
}
Gives the correct error message:
test.d(3): Error: function std.string.rjustify!(string).rjustify is deprecated
But this program gives no deprecated errors:
import std.string;
void main() {
auto J = &rjustify!string;
J("hello", 10);
}
--
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