I use defstruct to define a struct variable. For example:
defstruct(mystruct aaa bbb)
s1 = make_mystruct(?aaa 1 ?bbb 2)
then I use setVarWriteProtect to make s1 write protected:
But when I change s1->aaa = 5, it still can be modified. Seems only s1 is write protected, but no its member variables.
How to write protect the member variable s1->aaa? Is there anyway to do it in Skill if not by function setVarWriteProtect?
We're not ignoring you. It's just that we don't know the answer or if it is possible. I think it might be a question for a Cadence person.
Why do you want to protect it like this? I can't really think of a good reason.