Skip to content

Commit b2d16a9

Browse files
ntreldlang-bot
authored andcommitted
[spec/expression] Add links
Follows on from #3830. Also add link from casting basic types to casting integers.
1 parent 747043d commit b2d16a9

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

spec/expression.dd

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,8 @@ $(GNAME ConditionalExpression):
389389
$(GLINK OrOrExpression) $(D ?) $(GLINK Expression) $(D :) $(GSELF ConditionalExpression)
390390
)
391391

392-
$(P The first expression is converted to $(D bool), and is evaluated.
392+
$(P The first expression is $(DDSUBLINK spec/statement, boolean-conditions,
393+
converted to $(D bool)), and is evaluated.
393394
)
394395

395396
$(P If it is $(D true), then the second expression is evaluated, and
@@ -447,7 +448,8 @@ $(GNAME OrOrExpression):
447448
$(P The $(I OrOrExpression) evaluates its left operand.
448449
)
449450

450-
$(P If the left operand, converted to type $(D bool), evaluates to
451+
$(P If the left operand, $(DDSUBLINK spec/statement, boolean-conditions,
452+
converted to type $(D bool)), evaluates to
451453
$(D true), then the right operand is not evaluated. If the result type of
452454
the $(I OrOrExpression) is $(D bool) then the result of the
453455
expression is $(D true).
@@ -475,7 +477,8 @@ $(GNAME AndAndExpression):
475477
$(P The $(I AndAndExpression) evaluates its left operand.
476478
)
477479

478-
$(P If the left operand, converted to type $(D bool), evaluates to
480+
$(P If the left operand, $(DDSUBLINK spec/statement, boolean-conditions,
481+
converted to type $(D bool)), evaluates to
479482
$(D false), then the right operand is not evaluated. If the result type of
480483
the $(I AndAndExpression) is $(D bool) then the result of the
481484
expression is $(D false).
@@ -1218,6 +1221,8 @@ $(H4 $(LNAME2 cast_basic_data_types, Basic Data Types))
12181221
-------------
12191222
)
12201223

1224+
$(P See also: $(RELATIVE_LINK2 cast_integers, Casting Integers).)
1225+
12211226
$(H4 $(LNAME2 cast_class, Class References))
12221227

12231228
$(P Any casting of a class reference to a

0 commit comments

Comments
 (0)