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 22541,When `ref scope return` attributes are used on a parameter, and `return scope` appears, the `return` applies to the `scope`, not the `ref`.))
16
16
$(LI $(RELATIVE_LINK2 TraitsParameters,`__traits(parameters)` has been added to the compiler.))
17
17
$(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))
19
19
$(LI $(RELATIVE_LINK2 disasm,New command line switch -vasm which outputs assembler code per function))
20
20
$(LI $(RELATIVE_LINK2 fix16997,The '-preview=intpromote' switch is now set by default.))
21
21
$(LI $(RELATIVE_LINK2 fix18964,`-m32` now produces MS Coff objects when targeting windows))
22
22
$(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))
23
24
$(LI $(RELATIVE_LINK2 switch_fallthrough_error,Falling through switch cases is now an error))
24
25
$(LI $(RELATIVE_LINK2 throw_expression,Throw expression as proposed by DIP 1034 have been implemented))
25
26
$(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
194
195
)
195
196
)
196
197
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)
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.
201
202
)
202
203
203
204
$(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.
205
206
)
206
207
207
208
---
208
-
alias Tuple(T...) = T;
209
+
alias Seq(T...) = T;
209
210
210
211
void foo()
211
212
{
212
-
Tuple!(int, int) tup;
213
+
Seq!(int, int) seq;
213
214
214
-
auto foo = cast(long) tup;
215
+
auto foo = cast(long) seq;
215
216
pragma(msg, typeof(foo)); // (int, int)
216
217
217
-
auto bar = cast(Tuple!(long, int)) tup; // allowed
218
+
auto bar = cast(Seq!(long, int)) seq; // allowed
218
219
pragma(msg, typeof(bar)); // (long, int)
219
220
}
220
221
---
@@ -317,6 +318,20 @@ in root modules.
317
318
)
318
319
)
319
320
321
+
$(LI $(LNAME2 main_return_type,`main` can now return type `noreturn` and supports return inference)
0 commit comments