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

Export of array assignments/initialisations to C99 could be simplified / improved in many cases #1111

Open
codemanyak opened this issue Nov 8, 2023 · 0 comments
Assignees
Milestone

Comments

@codemanyak
Copy link
Collaborator

codemanyak commented Nov 8, 2023

Array assignments via initialiser literals are always decomposed on export to C, even if they contain only constant expressions:
grafik

ANSI C99, however, allows so called compound literals, not only in an initialization similar to those in Java, C# etc. (just without new):
grafik

This syntax could more often be used.

@codemanyak codemanyak added this to the Release 3.33 milestone Nov 8, 2023
@codemanyak codemanyak self-assigned this Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant