I didn’t even think of that as a solution to the problem because I actively try to avoid defining field types that way. You are absolutely correct.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Structs: Able to change members of type Vector{Float64}, but not of type Float64 | 2 | 352 | March 21, 2022 | |
| Changing the field value inside the structure | 5 | 849 | October 22, 2023 | |
| What Julia type maps to a C type containing nested structs? | 2 | 1427 | June 6, 2017 | |
| Can I modify the fields of a designed structure? | 11 | 1243 | May 20, 2022 | |
| Struct copy with change in the value of fields | 8 | 2535 | August 14, 2025 |