I was playing around with multi line comments (in Julia v0.5.1) , and got some interesting results.
So I tried:
julia> my#=comment=#var = 0
- (generic function with 1 method)
And now I get:
julia> 3 * 4
So I just overloaded (*) for (Any,Any). That’s weird.
So, I wanted to retry in a way, that I can edit *, so:
my#=comment=#var = 0
This creates a new method for (*), so “hi” * false returns now 0.
When I try this in Jupyter via Juliabox (Version 0.5), I get an error, if I don’t include Base.* first, but than it also adds a new method to it.
So, does anybod know, why this happens?
Here’s my versioninfo():
Julia Version 0.5.1
Commit 6445c82* (2017-03-05 13:25 UTC)
OS: Linux (x86_64-pc-linux-gnu)
CPU: AMD Phenom™ II X6 1100T Processor
LLVM: libLLVM-3.9.1 (ORCJIT, amdfam10)