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

Augment convert's documentation with a note on aliasing #17519

Merged
merged 1 commit into from
Jul 26, 2016

Conversation

Sacha0
Copy link
Member

@Sacha0 Sacha0 commented Jul 20, 2016

Augment convert's documentation with a brief section on potential aliasing between convert's second argument and result. Best!

…ert's result may alias part or all of convert's second argument when that argument is a collection or composite.
julia> z === x
false

julia> z.colptr === x.colptr
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this partial aliasing seems really undesirable to me.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Relevant discussion in #12441, #8759, and #9575. This section should be augmented with a pointer to either the copy!(similar(... idiom or a future copy(type, inst) interface, whichever gains favor in #12441.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, all aliasing is a bit scary when mutation is widespread, but partial aliasing of only some fields is even moreso

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, it's disquieting and warrants care.

@Sacha0
Copy link
Member Author

Sacha0 commented Jul 21, 2016

The AV i686 and Travis i686 failures appear to be the same show issue that arose in #17515? (Edit: 8a9fd10 I guess?)

@tkelman tkelman merged commit 2c45701 into JuliaLang:master Jul 26, 2016
@Sacha0
Copy link
Member Author

Sacha0 commented Jul 26, 2016

Thanks!

This pull request was closed.
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.

2 participants