Skip to content

Enable array size polymorphism#103

Merged
alastairreid merged 2 commits into
masterfrom
areid-infer-array-size
Jun 14, 2025
Merged

Enable array size polymorphism#103
alastairreid merged 2 commits into
masterfrom
areid-infer-array-size

Conversation

@alastairreid
Copy link
Copy Markdown

Note: this breaks existing code that uses

array [E] of ...

where E is an enumeration.

This now has to be written as

array [type E] of ...

Note that this makes a small breaking change to array syntax.
To use an enumeration E as the index type, use 'array [type E] of integer'
instead of 'array [E] of integer'.

This is to avoid a parsing ambiguity between type names and
expressions
@alastairreid alastairreid merged commit 64cb3f9 into master Jun 14, 2025
1 check passed
@alastairreid alastairreid deleted the areid-infer-array-size branch June 14, 2025 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant