On Monday, April 27, 2015 at 7:32:59 AM UTC-5, Sisyphuss wrote:
>
> In the documentation:
> >Currently, type declarations cannot be used in global scope, e.g. in the 
> REPL, since Julia does not yet have constant-type globals. 
> But we already have 
> ```
> const pi = 3.14
> ```
> Isn't it a constant-type global?
>

It is not just a constant-type global, though. It is also a constant-value 
global. A type-declared global variable would need to relax that 
restriction, which is not something that is currently supported. See also 
https://github.com/JuliaLang/julia/issues/964 (it's already linked in 
#8870).

Reply via email to