Hello ,
I would like to know if it is possible to automatically update the parameters of a strcutre when it is modified. For example, in the following example, the value of b is not updated when a changes:
julia> Base.@kwdef mutable struct S
a
b = 3 * a
end
S
julia> s = S(a=5)
S(5, 15)
julia> s.a = 10
10
julia> s
S(10, 15)
Would it be possible to make b automatically value 3 * 10 = 30
?
Thanks !
fdekerm