Skip to content

Commit 3744e41

Browse files
committed
update download and changelog for v2.099.0-rc.1
1 parent a0988f7 commit 3744e41

File tree

2 files changed

+35
-11
lines changed

2 files changed

+35
-11
lines changed

changelog/2.099.0_pre.dd

Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ $(CHANGELOG_NAV_INJECT)
55
$(VERSION Mar 01, 2022, =================================================,
66

77
$(CHANGELOG_HEADER_STATISTICS
8-
$(VER) comes with 19 major changes and 207 fixed Bugzilla issues.
8+
$(VER) comes with 20 major changes and 216 fixed Bugzilla issues.
99
A huge thanks goes to the
1010
$(LINK2 #contributors, 99 contributors)
1111
who made $(VER) possible.)
@@ -15,11 +15,12 @@ $(BUGSTITLE_TEXT_HEADER Compiler changes,
1515
$(LI $(RELATIVE_LINK2 22541,When `ref scope return` attributes are used on a parameter, and `return scope` appears, the `return` applies to the `scope`, not the `ref`.))
1616
$(LI $(RELATIVE_LINK2 TraitsParameters,`__traits(parameters)` has been added to the compiler.))
1717
$(LI $(RELATIVE_LINK2 __import,Add ability to import modules to ImportC))
18-
$(LI $(RELATIVE_LINK2 allow_casting_from_typetuple_to_typetuple,Casting between compatible tuples))
18+
$(LI $(RELATIVE_LINK2 allow_casting_from_typetuple_to_typetuple,Casting between compatible sequences))
1919
$(LI $(RELATIVE_LINK2 disasm,New command line switch -vasm which outputs assembler code per function))
2020
$(LI $(RELATIVE_LINK2 fix16997,The '-preview=intpromote' switch is now set by default.))
2121
$(LI $(RELATIVE_LINK2 fix18964,`-m32` now produces MS Coff objects when targeting windows))
2222
$(LI $(RELATIVE_LINK2 ignore_nonroot_ut,Ignore unittests in non-root modules))
23+
$(LI $(RELATIVE_LINK2 main_return_type,`main` can now return type `noreturn` and supports return inference))
2324
$(LI $(RELATIVE_LINK2 switch_fallthrough_error,Falling through switch cases is now an error))
2425
$(LI $(RELATIVE_LINK2 throw_expression,Throw expression as proposed by DIP 1034 have been implemented))
2526
$(LI $(RELATIVE_LINK2 traits_initSymbol,Added __traits(initSymbol) to obtain aggregate initializers))
@@ -194,27 +195,27 @@ The syntax for `__import` after the keyword is the same as for D's `import` decl
194195
)
195196
)
196197

197-
$(LI $(LNAME2 allow_casting_from_typetuple_to_typetuple,Casting between compatible tuples)
198+
$(LI $(LNAME2 allow_casting_from_typetuple_to_typetuple,Casting between compatible sequences)
198199
$(CHANGELOG_SOURCE_FILE dmd, changelog/allow_casting_from_typetuple_to_typetuple.dd)
199200
$(P
200-
Prior to this release, casting between built-in tuples of the same type was not allowed.
201+
Prior to this release, casting between built-in sequences of the same type was not allowed.
201202
)
202203

203204
$(P
204-
Starting with this release, casting between tuples of the same length is accepted provided that the underlying types of the casted tuple are implicitly convertible to the target tuple types.
205+
Starting with this release, casting between sequences of the same length is accepted provided that the underlying types of the casted sequence are implicitly convertible to the target sequence types.
205206
)
206207

207208
---
208-
alias Tuple(T...) = T;
209+
alias Seq(T...) = T;
209210

210211
void foo()
211212
{
212-
Tuple!(int, int) tup;
213+
Seq!(int, int) seq;
213214

214-
auto foo = cast(long) tup;
215+
auto foo = cast(long) seq;
215216
pragma(msg, typeof(foo)); // (int, int)
216217

217-
auto bar = cast(Tuple!(long, int)) tup; // allowed
218+
auto bar = cast(Seq!(long, int)) seq; // allowed
218219
pragma(msg, typeof(bar)); // (long, int)
219220
}
220221
---
@@ -317,6 +318,20 @@ in root modules.
317318
)
318319
)
319320

321+
$(LI $(LNAME2 main_return_type,`main` can now return type `noreturn` and supports return inference)
322+
$(CHANGELOG_SOURCE_FILE dmd, changelog/main_return_type.dd)
323+
$(P
324+
If `main` never returns (due to an infinite loop or always throwing an
325+
exception), it can now be declared as returning `noreturn`.
326+
See https://dlang.org/spec/type.html#noreturn.
327+
)
328+
329+
$(P
330+
If `main` is declared with `auto`, the inferred return type must be
331+
one of `void`, `int` and `noreturn`.
332+
)
333+
)
334+
320335
$(LI $(LNAME2 switch_fallthrough_error,Falling through switch cases is now an error)
321336
$(CHANGELOG_SOURCE_FILE dmd, changelog/switch_fallthrough_error.dd)
322337
$(P
@@ -571,6 +586,7 @@ $(BUGSTITLE_BUGZILLA DMD Compiler regression fixes,
571586
$(LI $(BUGZILLA 17635): [REG 2.066.0] cannot convert unique immutable$(LPAREN)int$(RPAREN)** to immutable)
572587
$(LI $(BUGZILLA 21367): Nameless union propagates copy constructors and destructors over all members)
573588
$(LI $(BUGZILLA 21538): Overriding with more attributes on delegate parameter is allowed)
589+
$(LI $(BUGZILLA 21674): [REG v2.086] `alias this` triggers wrong deprecation message on function call)
574590
$(LI $(BUGZILLA 21719): [REG 2.072] "auto" methods of classes do not infer attributes correctly.)
575591
$(LI $(BUGZILLA 22130): [REG2.080.1][DIP1000] pure factory functions stopped working)
576592
$(LI $(BUGZILLA 22163): [REG 2.094.0] wrong code with static float array and delegate accessing it)
@@ -581,11 +597,17 @@ $(LI $(BUGZILLA 22659): [REG master] Error: declaration '$(LPAREN)S[2] arr = __e
581597
$(LI $(BUGZILLA 22676): fullyQualifiedName fails to compile with 2.098.1 relese -- there is some issue with call to __traits$(LPAREN)isScalar ..)
582598
$(LI $(BUGZILLA 22705): importC: forward reference to struct typedef gives struct already exists)
583599
$(LI $(BUGZILLA 22714): ICE: Assertion failure in ClassDeclaration::isBaseOf)
600+
$(LI $(BUGZILLA 22730): master: "dmd -i" doesn't include unit tests from imported modules)
584601
$(LI $(BUGZILLA 22738): std.file.tempDir adds an addition / even when it already has one)
585602
$(LI $(BUGZILLA 22761): [REG 2.099] importC: Error: redeclaration with different type)
603+
$(LI $(BUGZILLA 22780): [REG 2.090] variable reference to scope class must be scope)
604+
$(LI $(BUGZILLA 22804): [REG 2.099] compiling multiple files without linking produces broken object files)
605+
$(LI $(BUGZILLA 22816): [REG 2.099] Parser reads files with other extensions)
606+
$(LI $(BUGZILLA 22817): [REG 2.099] Missing file gives misleading error message)
586607
)
587608
$(BUGSTITLE_BUGZILLA DMD Compiler bug fixes,
588609

610+
$(LI $(BUGZILLA 2): Hook up new dmd command line arguments)
589611
$(LI $(BUGZILLA 3): Finish or remove MatchExp::toElem)
590612
$(LI $(BUGZILLA 3818): Generic error message for wrong foreach)
591613
$(LI $(BUGZILLA 8346): Literals 00 - 07 results in odd errors when used with UFCS)
@@ -670,6 +692,7 @@ $(LI $(BUGZILLA 22726): ImportC: typedefs of tagged enums fail to compile)
670692
$(LI $(BUGZILLA 22727): ImportC: support for __stdcall and __fastcall is necessary for 32-bit Windows builds)
671693
$(LI $(BUGZILLA 22734): importC: typedef anonymous enum members not available when used from D)
672694
$(LI $(BUGZILLA 22749): importC: C11 does not allow taking the address of a bit-field)
695+
$(LI $(BUGZILLA 22756): ImportC: no __builtin_offsetof)
673696
$(LI $(BUGZILLA 22757): importC: typedef causes forward reference error)
674697
$(LI $(BUGZILLA 22758): ImportC: parenthesized expression confused with cast-expression)
675698
)
@@ -702,7 +725,7 @@ $(LI $(BUGZILLA 22508): DWARF: associative arrays should report qualified name i
702725
$(LI $(BUGZILLA 22519): [dip1000] cannot take address of `ref return`)
703726
$(LI $(BUGZILLA 22541): DIP1000: Resolve ambiguity of ref-return-scope parameters)
704727
$(LI $(BUGZILLA 22631): ImportC: support C++11 unscoped enums with underlying type)
705-
$(LI $(BUGZILLA 22672): Allow casting from TypeTuple to TypeTuple)
728+
$(LI $(BUGZILLA 22672): Allow casting a ValueSeq to a compatible TypeTuple)
706729
$(LI $(BUGZILLA 22733): hdrgen generates inconsistent order of STC attributes for ~this$(LPAREN)$(RPAREN))
707730
$(LI $(BUGZILLA 22746): Functions that throws marked as nothrow produces bad error)
708731
$(LI $(BUGZILLA 22753): Deprecation message for import module shouldn't produce hifen when no message)
@@ -771,6 +794,7 @@ $(LI $(BUGZILLA 22721): importC: some gnu builtins are rejected)
771794
$(LI $(BUGZILLA 22735): __builtins.di does not implement __builtin_bswap64 correctly)
772795
$(LI $(BUGZILLA 22741): importC: Error: bswap isn’t a template)
773796
$(LI $(BUGZILLA 22744): ImportC: builtins defined in __builtins.di cause undefined symbol linker errors.)
797+
$(LI $(BUGZILLA 22779): druntime: Calling __delete with null pointer-to-struct segfaults)
774798
)
775799
$(BUGSTITLE_BUGZILLA Druntime enhancements,
776800

download.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ Macros:
202202
_=BETA=$(COMMENT $0)
203203
BETA=$0
204204
B_DMDV2=2.099.0
205-
B_SUFFIX=beta.1
205+
B_SUFFIX=rc.1
206206

207207
DEB32=$(DLSITE dmd_$(DMDV2)-0_i386.deb)
208208
DEB64=$(DLSITE dmd_$(DMDV2)-0_amd64.deb)

0 commit comments

Comments
 (0)