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

deprecate conversion of Array{T1} to Ptr{T2} if T1 != T2 && T2 != None #6079

Merged
merged 1 commit into from
Mar 8, 2014

Conversation

stevengj
Copy link
Member

@stevengj stevengj commented Mar 7, 2014

Fixes #6073.

@ivarne
Copy link
Sponsor Member

ivarne commented Mar 7, 2014

What is the difference between Ptr{Void} and Ptr{None}?

They seem to be equivalent and Void prints as None and Void == None.

@stevengj
Copy link
Member Author

stevengj commented Mar 7, 2014

Void === None; this is just a synonym to make ccall look a bit more natural (Void return types, Ptr{Void} for void*, etcetera).

JeffBezanson added a commit that referenced this pull request Mar 8, 2014
deprecate conversion of Array{T1} to Ptr{T2} if T1 != T2 && T2 != None
@JeffBezanson JeffBezanson merged commit e7c2f99 into JuliaLang:master Mar 8, 2014
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.

convert(::Type{Ptr{T1}}, x::Array{T2}) should fail if T1 != T2
3 participants