On Tue, 2016-04-12 at 13:47, Didier Verna <[email protected]> wrote: > Mauro <[email protected]> wrote: > >> yes, this just binds a function to a variable. This also works: >> >> julia> foo() = 1 >> foo (generic function with 1 method) >> >> julia> bar = foo >> foo (generic function with 1 method) >> >> julia> bar = 2 >> 2 > > OK, so IIUC, defining a toplevel function is not strictly equivalent > to assigning an anonymous function to a name. Put it differently, the > "first" name for a global function plays a particular role.
I think so. Also, note this changed quite a bit in 0.5. See jb/functions branch.
