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

Array length should work with any expressions #14

Open
Halalaluyafail3 opened this issue Nov 25, 2021 · 0 comments
Open

Array length should work with any expressions #14

Halalaluyafail3 opened this issue Nov 25, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Halalaluyafail3
Copy link

cdecl+ Input

int a(int[static 2+1]),b(int q,int[static q]),c(int[2+1]),d(int q,int[q])

Expected Prose

Declare a as function(array[2+1] (size checked) of int) returning int

Declare b as function(int named q, array[q] (size checked) of int) returning int

Declare c as function(array[2+1] of int) returning int

Declare d as function(int named q, array[q] of int) returning int

Actual Prose or Error

Syntax Error

Additional Context

Any expression may be used for array bounds, the expression should just be pasted into the square brackets after array and it should be checked that no comma operators are used directly (e.g. int[1,2] is invalid).

@Halalaluyafail3 Halalaluyafail3 added the bug Something isn't working label Nov 25, 2021
@Eisenwave Eisenwave added enhancement New feature or request and removed bug Something isn't working labels Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants