diff --git a/spec/class.dd b/spec/class.dd index 3cd92b3c8d..c305ea5ff7 100644 --- a/spec/class.dd +++ b/spec/class.dd @@ -110,7 +110,7 @@ $(H2 $(LNAME2 access_control, Access Control)) $(H2 $(LNAME2 fields, Fields)) - $(P Class members are always accessed with the . operator. + $(P Class members are always accessed with the `.` operator. ) $(P Members of a base class can be accessed by prepending the name of @@ -206,19 +206,14 @@ void test(Foo foo) $(H2 $(LNAME2 super_class, Super Class)) All classes inherit from a super class. If one is not specified, - it inherits from Object. Object forms the root of the D class - inheritance hierarchy. + it inherits from $(REF1 Object, object). `Object` forms the root + of the D class inheritance hierarchy. -$(H2 $(LNAME2 member-functions, Member Functions)) +$(H2 $(LNAME2 member-functions, Member Functions (a.k.a. Methods))) - $(P Non-static member functions or static member functions with - `Objective-C` linkage have an extra hidden parameter called $(I this) - through which the class object's other members can be accessed. - ) - - $(P Member functions with the Objective-C linkage has an additional - hidden, anonymous, parameter which is the selector the function was - called with. + $(P Non-static member functions have an extra hidden parameter + called $(I this) through which the class object's other members + can be accessed. ) $(P Non-static member functions can have, in addition to the usual @@ -226,10 +221,6 @@ $(H2 $(LNAME2 member-functions, Member Functions)) $(D const), $(D immutable), $(D shared), or $(D inout). These attributes apply to the hidden $(I this) parameter. ) - - $(P Static member functions with the Objective-C linkage are placed in - the hidden nested metaclass as non-static member functions. - ) --- class C { @@ -245,6 +236,22 @@ class C } --- +$(H3 $(LNAME2 objc-member-functions, Objective-C linkage)) + + $(P Static member functions with + `Objective-C` linkage also have an extra hidden parameter called $(I this) + through which the class object's other members can be accessed. + ) + + $(P Member functions with Objective-C linkage have an additional + hidden, anonymous, parameter which is the selector the function was + called with. + ) + + $(P Static member functions with Objective-C linkage are placed in + the hidden nested metaclass as non-static member functions. + ) + $(H2 $(LNAME2 synchronized-classes, Synchronized Classes)) diff --git a/spec/function.dd b/spec/function.dd index 170b815785..231421b4ed 100644 --- a/spec/function.dd +++ b/spec/function.dd @@ -801,7 +801,7 @@ class Bar : Foo ) $(P - Functions with `Objective-C` linkage has an additional hidden, + Functions with `Objective-C` linkage have an additional hidden, unnamed, parameter which is the selector it was called with. )