Can structs have static fields?

You want a dynamically valued property that is shared across all instances of a particular type? Sounds like you should use a function.

prop(x::MyType) = # some calculation
9 Likes