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?
Yes, I had noticed that behaviour - sometimes it's useful, but I think it's bad practice use it deliberately.