You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$(LI $(RELATIVE_LINK2 fix18361,Fix issue 18361 - Ddoc ability to opt-out of automatic keyword highlighting in running text))
20
21
$(LI $(RELATIVE_LINK2 fix8207,D ABI change on Win32 and OSX targets))
21
22
$(LI $(RELATIVE_LINK2 hexstrings,HexString literals are deprecated.))
22
-
$(LI $(RELATIVE_LINK2 includeimports,Added the -i command line option to automatically include imports))
23
+
$(LI $(RELATIVE_LINK2 includeimports,Added the `-i` command line option to automatically include imports))
23
24
$(LI $(RELATIVE_LINK2 json_includes,Added `-Xi=<name>` to include more fields in the JSON output))
24
25
$(LI $(RELATIVE_LINK2 lambdacomp,Lambda comparison using `__traits(isSame, ...)`))
25
26
$(LI $(RELATIVE_LINK2 lld_mingw,Windows: Visual C++ and the Windows SDK are no longer required to build 64-bit executables))
@@ -65,6 +66,33 @@ $(CHANGELOG_SEP_HEADER_TEXT)
65
66
66
67
$(BUGSTITLE_TEXT_BODY Compiler changes,
67
68
69
+
$(LI $(LNAME2 argument-mismatch,Argument mismatch errors have been improved)
70
+
$(P
71
+
$(P `dmd` now shows which argument failed to match a parameter with an explanatory error message.)
72
+
)
73
+
---
74
+
void fill(ref char[16] buf, char c);
75
+
76
+
void main()
77
+
{
78
+
fill("1234567890123456", '*');
79
+
80
+
const char[16] s;
81
+
fill(s, '*');
82
+
}
83
+
---
84
+
$(P
85
+
$(P Output:)
86
+
$(CONSOLE
87
+
fillchar.d(5): Error: function `fillchar.fill(ref char[16] buf, char c)` is not callable using argument types `(string, char)`
88
+
fillchar.d(5): cannot pass rvalue argument `"1234567890123456"` of type `string` to parameter `ref char[16] buf`
89
+
fillchar.d(8): Error: function `fillchar.fill(ref char[16] buf, char c)` is not callable using argument types `(const(char[16]), char)`
90
+
fillchar.d(8): cannot pass argument `s` of type `const(char[16])` to parameter `ref char[16] buf`
91
+
)
92
+
$(P Note: Currently this change doesn't apply when the function has overloads.)
93
+
)
94
+
)
95
+
68
96
$(LI $(LNAME2 comma-deprecation-error,The deprecation period of using the result of comma expression has ended)
69
97
$(P
70
98
Comma expressions have proven to be a frequent source of confusion, and bugs.
@@ -422,17 +450,17 @@ Use $(LINK2 https://dlang.org/phobos/std_conv.html#hexString, `std.conv.hexStrin
422
450
)
423
451
)
424
452
425
-
$(LI $(LNAME2 includeimports,Added the -i command line option to automatically include imports)
453
+
$(LI $(LNAME2 includeimports,Added the `-i` command line option to automatically include imports)
426
454
$(P
427
-
Added the command line option -i which causes the compiler to treat imported modules as if they were given on the command line. The option also accepts "module patterns" that include/exclude modules based on their name. For example, the following will include all modules whose names start with `foo`, except for those that start with `foo.bar`:
455
+
Added the command line option `-i` which causes the compiler to treat imported modules as if they were given on the command line. The option also accepts "module patterns" that include/exclude modules based on their name. For example, the following will include all modules whose names start with `foo`, except for those that start with `foo.bar`:
0 commit comments