@@ -5,7 +5,7 @@ $(CHANGELOG_NAV_INJECT)
5
5
$(VERSION Nov 14, 2022, =================================================,
6
6
7
7
$(CHANGELOG_HEADER_STATISTICS
8
- $(VER) comes with 37 major changes and 736 fixed Bugzilla issues.
8
+ $(VER) comes with 38 major changes and 737 fixed Bugzilla issues.
9
9
A huge thanks goes to the
10
10
$(LINK2 #contributors, 299 contributors)
11
11
who made $(VER) possible.)
@@ -26,6 +26,7 @@ $(LI $(RELATIVE_LINK2 dmd.importc_typeof,ImportC now recognizes the `typeof(...)
26
26
$(LI $(RELATIVE_LINK2 dmd.markdown,Removed the `-transition=markdown` and `-revert=markdown` switches))
27
27
$(LI $(RELATIVE_LINK2 dmd.new-aa,`new` can now allocate an associative array))
28
28
$(LI $(RELATIVE_LINK2 dmd.previewInLink,`-preview=in` can now be used with `extern(C++)`, disabled for other non-D linkage))
29
+ $(LI $(RELATIVE_LINK2 dmd.shortenedMethodsEnabled,The shortened method syntax is now available by default.))
29
30
30
31
)
31
32
@@ -397,6 +398,28 @@ as `in` will allow to bind rvalues to `const T&`, as in C++.
397
398
)
398
399
)
399
400
401
+ $(LI $(LNAME2 dmd.shortenedMethodsEnabled,The shortened method syntax is now available by default.)
402
+ $(CHANGELOG_SOURCE_FILE dmd, changelog/dmd.shortenedMethodsEnabled.dd)
403
+ $(P
404
+ [DIP 1043---Shortened Method Syntax](https://forum.dlang.org/thread/
[email protected] ) has been accepted, the flag `-preview=shortenedMethods`
405
+ is no longer required to write shortened function bodies:
406
+ )
407
+
408
+ ---
409
+ int add(int x, int y) pure => x + y;
410
+
411
+ // equivalent full function body:
412
+ int add(int x, int y) pure
413
+ {
414
+ return x + y;
415
+ }
416
+ ---
417
+
418
+ $(P
419
+ The preview flag will still work until it is deprecated in a future release.
420
+ )
421
+ )
422
+
400
423
401
424
)
402
425
@@ -1011,6 +1034,7 @@ $(LI $(BUGZILLA 23355): invalid template parameter loses error location in some
1011
1034
$(LI $(BUGZILLA 23357): ImportC: compatible types with definitions leads to redeclaration error when used from D.)
1012
1035
$(LI $(BUGZILLA 23379): Cast of expressions with type noreturn result in ice)
1013
1036
$(LI $(BUGZILLA 23380): [dip1000] class parameter should not be treated as ref qua lifetime)
1037
+ $(LI $(BUGZILLA 23406): [seg fault] enums can cause compile time seg faults with assignments using alias this)
1014
1038
)
1015
1039
$(BUGSTITLE_BUGZILLA DMD Compiler enhancements,
1016
1040
@@ -1887,8 +1911,8 @@ $(D_CONTRIBUTORS
1887
1911
$(D_CONTRIBUTOR yglukhov)
1888
1912
$(D_CONTRIBUTOR yori)
1889
1913
$(D_CONTRIBUTOR Yuxuan Shui)
1890
- $(D_CONTRIBUTOR Ömer Faruk IRMAK)
1891
1914
$(D_CONTRIBUTOR Ömer Faruk Irmak)
1915
+ $(D_CONTRIBUTOR Ömer Faruk IRMAK)
1892
1916
$(D_CONTRIBUTOR Михаил Страшун)
1893
1917
$(D_CONTRIBUTOR سليمان السهمي (Suleyman Sahmi))
1894
1918
)
0 commit comments