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

Allow TYPE alignment control using metacommands #489

Open
a740g opened this issue May 4, 2024 · 0 comments
Open

Allow TYPE alignment control using metacommands #489

a740g opened this issue May 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@a740g
Copy link
Contributor

a740g commented May 4, 2024

Currently, QB64 does not perform member alignment for TYPES. This leads to compatibility issues and requires manual workarounds for users attempting to integrate QB64 with libraries or external functions. As a workaround, individuals need to manually add padding to TYPES to ensure proper alignment and size. Mistakes (which are very likely) made during manual padding can cause subtle bugs.

Introducing metacommands like $ALIGNMENT:ON, $ALIGNMENT:OFF and _ALIGNMENT (precompiler preset value) would allow users to control member alignment within TYPES. Enabling this feature would facilitate seamless integration with external libraries and enhance portability and ease of use.

Also, see #342.

@a740g a740g added the enhancement New feature or request label May 4, 2024
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
Status: Backlog
Development

No branches or pull requests

1 participant