Changing struct fields to a different sub-type during run time

Just to let you know, LightSimTypes.jl has been improved upon by WrappedUnions.jl, so I would suggest using that instead of it. See also the discourse announcement: [ANN]: WrappedUnions.jl: Wrap a Union for enhanced type-stability

2 Likes