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

add intrinsics for dereferencing pointers #1270

Merged
merged 1 commit into from
Sep 16, 2012

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Sep 9, 2012

This is intended to make use of ccall and ccallback slightly easier in some cases. This makes it idiomatic to dereference a value passed by reference from c as x = p[] or x = p[1]

The corresponding assignments also exist.

The use of both is discouraged, outside of interacting with c code.

@StefanKarpinski
Copy link
Member

Changing the title to WIP to reflect the don't-merge-yet status.

@nolta nolta mentioned this pull request Sep 13, 2012
@vtjnash
Copy link
Member Author

vtjnash commented Sep 15, 2012

@JeffBezanson I've updated this to use the load/store ops and renamed ref/assign to unsafe_ref/unsafe_assign

JeffBezanson added a commit that referenced this pull request Sep 16, 2012
add intrinsics for dereferencing pointers
@JeffBezanson JeffBezanson merged commit 0e614bc into JuliaLang:master Sep 16, 2012
@vtjnash vtjnash deleted the pointerref branch January 16, 2013 04:19
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.

3 participants