|
| 1 | +Ddoc |
| 2 | + |
| 3 | +$(CHANGELOG_NAV_INJECT) |
| 4 | + |
| 5 | +$(VERSION Jul 01, 2024, =================================================, |
| 6 | + |
| 7 | +$(CHANGELOG_HEADER_STATISTICS |
| 8 | +$(VER) comes with 1 major change and 4 fixed Bugzilla issues. |
| 9 | + A huge thanks goes to the |
| 10 | + $(LINK2 #contributors, 5 contributors) |
| 11 | + who made $(VER) possible.) |
| 12 | + |
| 13 | +$(BUGSTITLE_TEXT_HEADER Compiler changes, |
| 14 | + |
| 15 | +$(LI $(RELATIVE_LINK2 dmd.unsafe-boolean-values,`bool` values other than 0 or 1 are not `@safe`)) |
| 16 | + |
| 17 | +) |
| 18 | + |
| 19 | +$(CHANGELOG_SEP_HEADER_TEXT_NONEMPTY) |
| 20 | + |
| 21 | +$(CHANGELOG_SEP_HEADER_TEXT) |
| 22 | + |
| 23 | +$(BUGSTITLE_TEXT_BODY Compiler changes, |
| 24 | + |
| 25 | +$(LI $(LNAME2 dmd.unsafe-boolean-values,`bool` values other than 0 or 1 are not `@safe`) |
| 26 | +$(CHANGELOG_SOURCE_FILE dmd, changelog/dmd.unsafe-boolean-values.dd) |
| 27 | +$(P |
| 28 | +The spec has been updated so that only 0 and 1 are |
| 29 | +[safe values](https://dlang.org/spec/function.html#safe-values) |
| 30 | +for `bool`. This means that reading a `bool` value whose underlying byte representation |
| 31 | +has other bits set is implementation-defined and should be avoided. Consequently: |
| 32 | +) |
| 33 | + |
| 34 | +$(P |
| 35 | +* `void` initialization of booleans is now deprecated in `@safe` code. |
| 36 | +* Reading a `bool` field from a union is now deprecated in `@safe` code. |
| 37 | +) |
| 38 | + |
| 39 | +$(P |
| 40 | +Runtime array casting to `bool[]` is |
| 41 | +[yet to be deprecated](https://issues.dlang.org/show_bug.cgi?id=24582). |
| 42 | +) |
| 43 | +) |
| 44 | + |
| 45 | + |
| 46 | +) |
| 47 | + |
| 48 | +$(CHANGELOG_SEP_TEXT_BUGZILLA) |
| 49 | + |
| 50 | +$(BUGSTITLE_BUGZILLA DMD Compiler bug fixes, |
| 51 | + |
| 52 | +$(LI $(BUGZILLA 24566): condition that starts with runtime value and uses compile time array does not short circuit) |
| 53 | +$(LI $(BUGZILLA 24596): Rebindable2 corrupts objects) |
| 54 | +) |
| 55 | +$(BUGSTITLE_BUGZILLA DMD Compiler enhancements, |
| 56 | + |
| 57 | +$(LI $(BUGZILLA 24595): OpenBSD: Use .init_array/.fini_array) |
| 58 | +$(LI $(BUGZILLA 24597): FreeBSD/OpenBSD: Enable ELF_COMDAT) |
| 59 | +) |
| 60 | +) |
| 61 | +$(D_CONTRIBUTORS_HEADER 5) |
| 62 | +$(D_CONTRIBUTORS |
| 63 | + $(D_CONTRIBUTOR Brian Callahan) |
| 64 | + $(D_CONTRIBUTOR Iain Buclaw) |
| 65 | + $(D_CONTRIBUTOR Mathis Beer) |
| 66 | + $(D_CONTRIBUTOR Nick Treleaven) |
| 67 | + $(D_CONTRIBUTOR Timon Gehr) |
| 68 | +) |
| 69 | +$(D_CONTRIBUTORS_FOOTER) |
| 70 | +$(CHANGELOG_NAV_INJECT) |
| 71 | + |
| 72 | +Macros: |
| 73 | + VER=2.109.1 |
| 74 | + TITLE=Change Log: $(VER) |
0 commit comments