Skip to content

Commit

Permalink
fix implicit conversion table for references
Browse files Browse the repository at this point in the history
  • Loading branch information
9rnsr committed May 29, 2014
1 parent 91ae601 commit 91a3cda
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions const3.dd
Expand Up @@ -392,16 +392,18 @@ $(SECTION2 Implicit Conversions,
$(P References can be converted according to the following rules:
)

$(TABLE_SPECIAL $(ARGS Implicit Conversion of Reference Types)
$(TROW from/to, $(I mutable), $(D const), $(D immutable), $(D shared), $(D shared const), $(D inout), $(D inout shared))
$(TROW $(I mutable) $(YES) $(YES) $(NO) $(NO) $(NO) $(YES) $(NO))
$(TROW $(D const) $(NO) $(YES) $(NO) $(NO) $(NO) $(YES) $(NO))
$(TROW $(D immutable) $(NO) $(YES) $(YES) $(NO) $(NO) $(YES) $(YES))
$(TROW $(D shared) $(NO) $(NO) $(NO) $(YES) $(YES) $(NO) $(YES))
$(TROW $(D shared const) $(NO) $(NO) $(NO) $(NO) $(YES) $(NO) $(YES))
$(TROW $(D inout) $(NO) $(YES) $(NO) $(NO) $(NO) $(YES) $(NO))
$(TROW $(D inout shared) $(NO) $(YES) $(NO) $(NO) $(NO) $(NO) $(YES))
)
$(TABLE_SPECIAL $(ARGS Implicit Conversion of Reference Types)
$(TROW from/to, $(I mutable), $(D const), $(D shared), $(D shared const), $(D inout), $(D inout const), $(D inout shared), $(D inout shared const), $(D immutable))
$(TROW $(I mutable) $(YES) $(YES) $(NO) $(NO) $(NO) $(NO) $(NO) $(NO) $(NO) )
$(TROW $(D const) $(NO) $(YES) $(NO) $(NO) $(NO) $(NO) $(NO) $(NO) $(NO) )
$(TROW $(D shared) $(NO) $(NO) $(YES) $(YES) $(NO) $(NO) $(NO) $(NO) $(NO) )
$(TROW $(D shared const) $(NO) $(NO) $(NO) $(YES) $(NO) $(NO) $(NO) $(NO) $(NO) )
$(TROW $(D inout) $(NO) $(YES) $(NO) $(NO) $(YES) $(YES) $(NO) $(NO) $(NO) )
$(TROW $(D inout const) $(NO) $(YES) $(NO) $(NO) $(NO) $(YES) $(NO) $(NO) $(NO) )
$(TROW $(D inout shared) $(NO) $(NO) $(NO) $(YES) $(NO) $(NO) $(YES) $(YES) $(NO) )
$(TROW $(D inout shared const) $(NO) $(NO) $(NO) $(YES) $(NO) $(NO) $(NO) $(YES) $(NO) )
$(TROW $(D immutable) $(NO) $(YES) $(NO) $(YES) $(NO) $(YES) $(NO) $(YES) $(YES))
)

$(P If an implicit conversion is disallowed by the table, an $(GLINK2 expression, Expression)
may be converted if:
Expand Down

0 comments on commit 91a3cda

Please sign in to comment.