Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Base Modelica package is self-contained wrt lookup #3550

Open
wants to merge 1 commit into
base: MCP/0031
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions RationaleMCP/0031/differences.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ The definitions before the `model` either define types or global constants.

## Lexical scoping and record definitions

For purposes of lookup, a Base Modelica package shall be handled as a top-level Modelica package:
- During the lookup process, if an identifier is not found within the Base Modelica package, it must refer to a Base Modelica built-in entity.
- Global name lookup of `.x` (or `.x.y.z`) requires `x` to be a built-in or the name of the Base Modelica package.

Lookup in Base Modelica is significantly simplified compared to full Modelica due to the restricted top level structure of a Base Modelica program, but there are two more restrictions on top of that explained in this section.

Taken together, the two restrictions can be summarized concisely as follows:
Expand Down