julia lang - inside type definition is reserved -
the code worked in 0.3:
type foo bar::int = 0 end after migrating julia 0.4- produces errors like
julia4 test.jl error: loaderror: syntax: "bar::int=0" inside type definition reserved in include @ ./boot.jl:254 in include_from_node1 @ loading.jl:133 in process_options @ ./client.jl:306 in _start @ ./client.jl:406 what error mean? how fix in 0.4-?
nb
i understand dev version. did googled , consulted manual http://julia.readthedocs.org/en/latest/manual/types/
i don't think called "default field values" ever worked expected, in future (0.6 ish) might. see https://github.com/julialang/julia/issues/10146
Comments
Post a Comment