Julia 0.7 supports method propertynames(x, private=false)
The latest documentation for that method reads
‘‘propertynames(x) may return only “public” property names that are part of the documented interface of x. If you want it to also return “private” fieldnames intended for internal use, pass true for the optional second argument. REPL tab completion on x. shows only the private=false properties.’’
Does Julia 0.7 let you define a property/field as readonly when you define a (mutable) struct
,
or is the overloaded method propertyname
responsible for enforcing private=true
?
How does the REPL know when a property is private?
Also, how are methods getproperty
, and setproperty
expected to deal with private properties?
Thanks.