-
Key: IDL43-35
-
Status: open
-
Source: Airbus Group ( Mr. Oliver M. Kellogg)
-
Summary:
The section Imports contains
The effects of an import statement are as follows:
- [...]
- Importing a name scope recursively imports all name scopes nested within it.
This looks counter intuitive to me.
Example:
module commontypes { module nested1 { enum RGBColor { RED, GREEN, BLUE }; } module nested2 { enum TrafficLight { READ, YELLOW, GREEN }; } };
What happens if another module does "import commontypes"?
If, as the standard says, all name scopes nested within "commontypes" are recursively imported then this would lead to errors:
The enum values RED and GREEN would be directly visible and would be in conflict with each other. -
Reported: IDL 4.2 — Mon, 29 Jun 2020 07:47 GMT
-
Updated: Wed, 7 Dec 2022 15:26 GMT
IDL43 — Importing a name scope recursively imports all name scopes nested within it
- Key: IDL43-35
- OMG Task Force: Interface Definition Language 4.3 RTF