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

Workaround record array problem #892

Merged
merged 1 commit into from
Jul 13, 2023
Merged

Workaround record array problem #892

merged 1 commit into from
Jul 13, 2023

Conversation

badcel
Copy link
Member

@badcel badcel commented Jul 13, 2023

The current code for record arrays is not really usable as the GetDirection method can return "ref" / "out" keywords which is not useful in context of native interop.

As HarfBuzz added a function containing a caller allocated out record this case is treated as a regular array to avoid compilation errors. During runtime this is expected to fail but was not working before either.

  • I agree that my contribution may be licensed either under MIT or any version of LGPL license.

The current code for record arrays is not really usable as the GetDirection method can return "ref" / "out" keywords which is not useful in context of native interop.

As HarfBuzz added a function containing a caller allocated out record this case is treated as a regular array to avoid compilation errors. During runtime this is expected to fail but was not working before either.
@badcel badcel merged commit 87c822c into main Jul 13, 2023
@badcel badcel deleted the workaround-record-problem branch July 13, 2023 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant