Re: Mutex in a struct?
Posted: 15 Mar 2012, 19:10
Wow, that makes no sense why it does not work. Weird...mcsummation wrote:I made the macro handle the mutex issue.
However, I have another thing now:Why don't the last two work? The next to the last says "Data types are not compatible". The last one gives that plus a couple of other errors which would be secondary issues.Code: Select all
struct a { string b; string c[]; }; a aa; string d[]; string e; long l; task main() { e = FlattenVar(l); // This works. d[0] = FlattenVar(l); // So does this. aa.b = FlattenVar(l); // And, yet again, it works. aa.c[0] = e; // This doesn't work. aa.c[0] = FlattenVar(l); // Neither does this. }