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.
doit
21
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Structs: Able to change members of type Vector{Float64}, but not of type Float64 | 2 | 355 | March 21, 2022 | |
| Changing the field value inside the structure | 5 | 872 | October 22, 2023 | |
| What Julia type maps to a C type containing nested structs? | 2 | 1429 | June 6, 2017 | |
| Can I modify the fields of a designed structure? | 11 | 1258 | May 20, 2022 | |
| Struct copy with change in the value of fields | 8 | 2549 | August 14, 2025 |