Hello, I am currently doing the first steps with Julia and stumbled over the following fact concerning type stability.
When I do the following I get an invalid redefinition error as expected:
const dl = 3 dl = 3.
but if I wrap it in a function
function assign_test(x_) const dl = 3 dl = x_ end assign_test(4.4)
I won’t get this error. Why is that?