Skip to content

Add operator INCLUDE #224

Description

@python-processing-unit

Add operator BOOL INCLUDE(STR module).

INCLUDE acts exactly like IMPORT except the the imported names are unqualified.

For example, if module foo is:

STR foo = "foo"

Then either of these would be correct:

IMPORT("foo")
PRINT(foo.foo)
INCLUDE("foo")
PRINT(foo)

But these would be incorrect:

IMPORT("foo")
PRINT(foo)
INCLUDE("foo")
PRINT(foo.foo)

Update the specification, tests, and implementation.

Metadata

Metadata

Labels

documentationImprovements or additions to documentationenhancementNew feature or requestinterpreterRequires a code change in the interpreter.minorRequires a minor version change.testSomething related to the test suite.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions