phobos/changelog.dd
2016-10-10 12:31:27 -07:00

36 lines
1.1 KiB
Text

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>