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

compile time arrays #1806

Open
Androthi opened this issue Jan 11, 2025 · 1 comment
Open

compile time arrays #1806

Androthi opened this issue Jan 11, 2025 · 1 comment
Labels
Accepted Accepted Request Enhancement Request New feature or request
Milestone

Comments

@Androthi
Copy link

c3 is leaning heavily into macros and compile time features. it would be helpful for code generation if there were proper compile time mutable arrays which would make it easier to use, as well as being less bug prone.

eg:

int $value = 100;
int[20] $arr;
$arr[5] += $value;

i believe currently, you have to extract the value at index, modify it, then build a new array by concatenation.

@lerno lerno added Enhancement Request New feature or request Accepted Accepted Request labels Jan 11, 2025
@lerno
Copy link
Collaborator

lerno commented Jan 12, 2025

Let's make it happen.

@lerno lerno added this to the 0.6.7 milestone Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Accepted Request Enhancement Request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants