Skip to content

[Correction] §8.6 — Constructor rule 2c conflates VMT layout with instance layout #34

Description

@NickHodges

Section: §8.6 Constructors, rule 2c

Current text:

c. Sets the object's class pointer (first field in the VMT layout).

Problem:
This contradicts §8.17 (Object Memory Layout), which correctly states the class/VMT pointer occupies "Offset 0" of the object instance's layout. The VMT itself doesn't have a "first field" in this sense — the confusion is instance-layout vs. VMT-layout, making rule 2c internally inconsistent with the rest of the chapter.

Suggested fix:

c. Sets the object's class pointer (the first field of the instance's memory layout — see §8.17).

Activity

  1. added
    bugSomething isn't working
    documentationImprovements or additions to documentation
    on Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentation

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions