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
import/using docs: examples & explanation #27130
Comments
For reference, the linked example above is:
and the text:
|
I cannot quite reconcile what Stefan said with below examples, in Julia 0.6.2: _ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: https://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.6.2 (2017-12-13 18:08 UTC)
_/ |\__'_|_|_|\__'_| |
|__/ | x86_64-pc-linux-gnu
julia> using Distributions
julia> logpdf(Uniform(1,2), 1)
-0.0
julia> loglikelihood(x) = 1
ERROR: error in method definition: function StatsBase.loglikelihood must be explicitly imported to be extended but this works: julia> using Distributions
julia> loglikelihood(x) = 1
loglikelihood (generic function with 1 method)
julia> logpdf(Uniform(1,2), 1)
-0.0 Why is |
I can't reproduce.
|
I can't reproduce it either anymore, although scrolling up in my terminal shows the edited (now including banner), above output?! Sorry about the noise... |
Add some form of https://discourse.julialang.org/t/julep-taking-multiple-dispatch-export-import-binary-compilation-seriously/10882/100 and https://discourse.julialang.org/t/julep-taking-multiple-dispatch-export-import-binary-compilation-seriously/10882/109 to the documentation of import and using.
The text was updated successfully, but these errors were encountered: