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

NIFC: Implement #423 only for the simplest case #427

Merged
merged 4 commits into from
Jan 31, 2025

Conversation

demotomohiro
Copy link
Collaborator

@demotomohiro demotomohiro commented Jan 29, 2025

Currently, it works only for plain C arrays.
Doesn't work for arrays in C struct field.

c.add Dot
c.add "a"
let tyArr = getType(c.m, t, a)
let litId = t[tyArr.rawPos].litId
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs more error checking here, I think.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again: You don't know if rawPos is what you can access and worse you don't know if at t[tyArr.rawPos] there is a literal to be found.

@Araq Araq merged commit 2477c30 into nim-lang:master Jan 31, 2025
3 checks passed
@demotomohiro demotomohiro deleted the nifc-impl-423 branch January 31, 2025 07:34
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.

2 participants