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

Reinterpret is not aware that tuples are bitstypes now #13209

Closed
mschauer opened this issue Sep 18, 2015 · 2 comments
Closed

Reinterpret is not aware that tuples are bitstypes now #13209

mschauer opened this issue Sep 18, 2015 · 2 comments

Comments

@mschauer
Copy link
Contributor

julia> Tuple{UInt}
Tuple{UInt64}

julia> isbits(Tuple{UInt})
true

julia> isbits((1, 1))
true

julia> reinterpret(Tuple{UInt}, (1, 1))
ERROR: reinterpret: expected bits type as first argument
 in reinterpret at essentials.jl:116

The same problem with Complex{Real} for example.

@yuyichao
Copy link
Contributor

I think this is probably a dup of #11822

AFAIK, the issue is that reinterpret is expecting a bitstype, not only isbits() == true.

@vtjnash
Copy link
Member

vtjnash commented Sep 18, 2015

while, they do qualify as isbits, Tuples aren't bitstypes. (I'm pretty sure there is already an issue open about whether the extend reinterpret to cover more types)

@vtjnash vtjnash closed this as completed Sep 18, 2015
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

No branches or pull requests

3 participants