[Closed] Nested structs – continued
Following the previous (now closed) nested structs thread, concluding with
I thought I would chime in with my 2 cents, i.e. that you can also use semicolon instead of parentheses:
struct parentDef
(
childDef = struct childDef (x,y);,
childInstance = childDef 5 3
)
parentInstance = parentDef()
parentInstance.childDef --> returns a struct definition
Not forgetting to use the semicolon is about the same mental strain as not forgetting the commas, so it might be worth considering – especially with one-line struct definitions like this one.
Thanks for this. I’m implementing some persistent plugins and custom attributes and it’s pretty messy writing them in this fashion. This should help!
Recent Topics
-
Need help with script to automate certain things
By siddhartha 1 week ago
-
By Dave 3 months ago
-
By MZ1 1 year ago
-
By brianstorm 1 year ago
-
By MZ1 1 year ago
-
Support class with multiple name (C#,SDK)
By MZ1 1 year ago
-
How to sort subarrays for Mat ID swapping
By brianstorm 1 year ago