Hello,
In many of my XDC modules I use structs within the module definition to help with managing data. I recently tried to re-architect one of my modules which had a Queue.Object in the Instance state, but needed to move / replicate it into a stuct, of which there is an array of in the instance state.
mod A_orig
{
struct complex_data{Stuff};
internal:
Instance_State
{
Queue.Object q;
complex_data data[];
}
}
mod A_desired
{
struct complex_data
{
Stuff
Queue.Object q;
};
internal:
Instance_State
{
complex_data data[];
}
}
the module compile failed, and I needed to switch to a handle, and create them instead. Is that the only way?
Thanks