Skip to content

[WIP] Clarify section about Base.convert fall-back.#15132

Merged
JeffBezanson merged 2 commits intoJuliaLang:masterfrom
helgee:master
Feb 18, 2016
Merged

[WIP] Clarify section about Base.convert fall-back.#15132
JeffBezanson merged 2 commits intoJuliaLang:masterfrom
helgee:master

Conversation

@helgee
Copy link
Copy Markdown
Contributor

@helgee helgee commented Feb 18, 2016

See discussion in #15120.

constructor, while the reverse is not true. That is, defining
``Base.convert(::Type{T}, args...) = ...`` automatically defines a
constructor ``T(args...) = ...``.
``Base.convert`` *instead* of defining a constructor, because Julia
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

remove the trailing whitespace here

Copy link
Copy Markdown
Contributor

@toivoh toivoh Feb 18, 2016 via email

Choose a reason for hiding this comment

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

@JeffBezanson
Copy link
Copy Markdown
Member

Very good, thank you.

JeffBezanson added a commit that referenced this pull request Feb 18, 2016
[WIP] Clarify section about Base.convert fall-back.
@JeffBezanson JeffBezanson merged commit fc799c3 into JuliaLang:master Feb 18, 2016
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.

4 participants