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

Changed dyn_var specialization for pointer types to return the appropriate type #65

Merged
merged 2 commits into from
Feb 7, 2024

Conversation

AjayBrahmakshatriya
Copy link
Collaborator

Previously all dyn_var returned a plain old builder for the *, [] operators. But this makes accessing members from custom types difficulty.

We have now changed the specialization for all pointer types T* to return a dyn_var with the expression inside for * and []. Further more we add an implementation of -> for these types similar to how it was implemented in sample38

sample38 has been updated to not require a separate specialization for dyn_var<foo_t*> anymore. sample46 also has been updated to test the new feature.

@AjayBrahmakshatriya AjayBrahmakshatriya merged commit ceb7759 into BuildIt-lang:master Feb 7, 2024
2 checks passed
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