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

Inconsistent "return value" of assignment for type fields #14691

Closed
rfourquet opened this issue Jan 16, 2016 · 0 comments
Closed

Inconsistent "return value" of assignment for type fields #14691

rfourquet opened this issue Jan 16, 2016 · 0 comments
Assignees
Labels
bug Indicates an unexpected problem or unintended behavior

Comments

@rfourquet
Copy link
Member

Quoting @JeffBezanson :

= returns the right-hand side every time. No exceptions. That ought to be consistent enough for anybody.

But:

julia> type A; a::UInt end
julia> A(0).a = 0
0x0000000000000000

I couldn't find the above stated rule in the manual, if it isn't this should be added before closing this issue (cf. #7341 (comment)).

@JeffBezanson JeffBezanson self-assigned this Jan 16, 2016
@JeffBezanson JeffBezanson added the bug Indicates an unexpected problem or unintended behavior label Jan 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants