Skip to content

[spec/type] Improve class element conversion docs - #23574

Open
ntrel wants to merge 2 commits into
dlang:masterfrom
ntrel:array-class
Open

[spec/type] Improve class element conversion docs#23574
ntrel wants to merge 2 commits into
dlang:masterfrom
ntrel:array-class

Conversation

@ntrel

@ntrel ntrel commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Move converting between base and derived class types docs to class.dd (this is basic behavior inherent to classes).
Rename heading, change to H3 level (so it appears in TOC).
Fix dlang/dlang.org#4462:

  • Document pointer to derived class conversion to base pointer.
  • Array of mutable derived class also converts to const base array.
  • Array of immutable derived class also converts to const base array.

Replace 2 examples.
Add rationale for conversions.
Change function pointer to H3 level too.

class.dd:
Rename Super Class heading to Inheritance (as it already mentioned interfaces too).

ntrel added 2 commits August 11, 2026 21:58
Move converting between base and derived class types docs to class.dd.
Document pointer to derived class conversion.
Array of mutable derived class also converts to const base array.
Array of immutable derived class also converts to const base array.
Replace 2 examples.

class.dd:
Rename *Super Class* heading to *Inheritance* (as it already mentioned
interfaces too).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[spec/type] Class Conversions is missing some conversions

1 participant