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 zero and one for Ptr{T} #8909

Merged
merged 1 commit into from
Nov 10, 2014
Merged

Conversation

ivarne
Copy link
Member

@ivarne ivarne commented Nov 5, 2014

They doesn't fulfill the documentation for zero and one about additive and multiplicative identity.

See discussion in #6183 (comment)

@@ -215,3 +215,8 @@ end

export String
const String = AbstractString

@deprecate zero{T}(::Type{Ptr{T}}) = Ptr{T}(0)
Copy link
Member

Choose a reason for hiding this comment

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

You don't want the = here.

Copy link
Member Author

Choose a reason for hiding this comment

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

No, I most definitely don't want = there! Thanks and sorry

They doesn't fulfill the documentation for zero and one about additive
and multiplicative identity.

See discussion in
JuliaLang#6183 (comment)
@JeffBezanson JeffBezanson merged commit 47348ec into JuliaLang:master Nov 10, 2014
@ivarne ivarne deleted the one_ptr branch November 11, 2014 01:11
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