Skip to content

Array length should work with any expressions #14

@Halalaluyafail3

Description

@Halalaluyafail3

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).

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions