-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Nothing field in immutable occupies nonzero space #8156
Comments
pao
changed the title
Zero field immutable takes nonzero space in a type.
Nothing field in immutable occupies nonzero space
Aug 27, 2014
Renamed--the immutable type has a field, you've just given it a type that doesn't necessarily need space to represent. |
immutable My{A, B}
a::A
b::B
end
My(nothing, 1) Now causes segfault with the following backtrace:
|
Confirmed that it did not segfault on the parent commit of 6667e5d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://groups.google.com/forum/#!topic/julia-users/2uXsjXuXxn0
sizeof(MyType(nothing))
should be0
, shouldn't it?cc: @mlhetland
The text was updated successfully, but these errors were encountered: