doc: correspondence ModuleIdx <--> Environment.moduleNames (#6749)
This PR documents the equality between the `ModuleIdx` of an module and the index in the array of `moduleNames` of the same module. I asked about this in the Office hours and it was confirmed that this is a current feature and one that is likely not to change!
This commit is contained in:
parent
f35a602070
commit
d8bcd6a32e
1 changed files with 4 additions and 1 deletions
|
|
@ -141,7 +141,10 @@ structure EnvironmentHeader where
|
|||
imports : Array Import := #[]
|
||||
/-- Compacted regions for all imported modules. Objects in compacted memory regions do no require any memory management. -/
|
||||
regions : Array CompactedRegion := #[]
|
||||
/-- Name of all imported modules (directly and indirectly). -/
|
||||
/--
|
||||
Name of all imported modules (directly and indirectly).
|
||||
The index of a module name in the array equals the `ModuleIdx` for the same module.
|
||||
-/
|
||||
moduleNames : Array Name := #[]
|
||||
/-- Module data for all imported modules. -/
|
||||
moduleData : Array ModuleData := #[]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue