@@ -1524,9 +1524,10 @@ $(H3 $(LNAME2 this, this))
1524
1524
1525
1525
$(P Within a non-static member function, $(D this) resolves to
1526
1526
a reference to the object for which the function was called.
1527
- If the object is an instance of a struct, $(D this) will
1528
- be a pointer to that instance.
1529
- If a member function is called with an explicit reference
1527
+ )
1528
+ $(P `typeof(this)` is valid anywhere inside an aggregate type
1529
+ definition.
1530
+ If a class member function is called with an explicit reference
1530
1531
to $(D typeof(this)), a non-virtual call is made:)
1531
1532
1532
1533
-------------
@@ -1552,14 +1553,14 @@ $(H3 $(LNAME2 this, this))
1552
1553
}
1553
1554
-------------
1554
1555
1555
- $(P Assignment to $(D this) is not allowed.)
1556
+ $(P Assignment to $(D this) is not allowed for classes .)
1556
1557
1557
1558
$(H3 $(LNAME2 super, super))
1558
1559
1559
1560
$(P $(D super) is identical to $(D this), except that it is
1560
1561
cast to $(D this)'s base class.
1561
1562
It is an error if there is no base class.
1562
- It is an error to use $(D super) within a struct member function.
1563
+ It is an error to use the $(D super) reference outside a non-static class member function.
1563
1564
(Only class $(D Object) has no base class.)
1564
1565
If a member function is called with an explicit reference
1565
1566
to $(D super), a non-virtual call is made.
0 commit comments