stuh505
10-13-2005, 05:15 PM
If you instantiate a struct, and then change the struct and re-evaluate it, this does not change the definition of the instanced struct.
There are two possible explanations for this that I see
1) Every single struct instance stores the struct definition
2) Re-defining a struct does not override the previous definition but makes a new definition, and instances simply store a pointer to the definition that was used to create them
It is very important for me to know which method max script uses, because if it uses the first method, then the object oriented approach should be abandoned and instead there should be "data structs" and "function structs" to allow many instances of a struct to be created without wasting memory by duplicating identical function definitions.
There are two possible explanations for this that I see
1) Every single struct instance stores the struct definition
2) Re-defining a struct does not override the previous definition but makes a new definition, and instances simply store a pointer to the definition that was used to create them
It is very important for me to know which method max script uses, because if it uses the first method, then the object oriented approach should be abandoned and instead there should be "data structs" and "function structs" to allow many instances of a struct to be created without wasting memory by duplicating identical function definitions.
