forked from dlang/phobos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchangelog.dd
36 lines (27 loc) · 1.11 KB
/
changelog.dd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Ddoc
$(COMMENT Pending changelog for 2.073. This will get copied to dlang.org and
cleared when master gets merged into stable.
)
$(BUGSTITLE Library Changes,
$(LI $(RELATIVE_LINK2 promoted, Added `std.traits.Promoted` to get the result of
$(LINK2 $(ROOT_DIR)spec/type.html#integer-promotions, scalar type promotion)
in multi-term arithmetic expressions.))
)
$(BUGSTITLE Library Changes,
$(LI $(LNAME2 promoted, `std.traits.Promoted` gets the type to which a scalar type will
be promoted in multi-term arithmetic expressions)
-------
import std.traits : Promoted;
static assert(is(typeof(ubyte(3) * ubyte(5)) == Promoted!ubyte));
static assert(is(Promoted!ubyte == int));
-------
$(P See the D specification on $(LINK2 $(ROOT_DIR)spec/type.html#integer-promotions,
scalar type promotions) for more information.)
)
)
Macros:
TITLE=Change Log
BUGSTITLE = <div class="bugsfixed">$(H4 $1) $(OL $2 )</div>
RELATIVE_LINK2=<a href="#$1">$+</a>
LNAME2=<a class="anchor" title="Permalink to this section" id="$1" href="#$1">$+</a>
BOOKTABLE = <table><caption>$1</caption>$+</table>