Tag mismatch
#1

This is not an easy question. I need someone with deep compiler knowledge, to explain to me what is happening under the hood.

Working:

pawn Код:
#include <a_samp>

enum E_TEST {
    E_WTF[32]
}

main () {
    new name[] = "Just a name";
    new test[E_TEST];
    strcat((test[E_WTF][0] = '\0', test[E_WTF]), name);
}
Failing

pawn Код:
strcat(((test[E_WTF])[0] = '\0', test[E_WTF]), name); // Warning: tag mismatch
I'm using some really contrived macros and I need the version in brackets to work. I just don't understand why it's not an compiler error, and just a tag mismatch error. Adding tags does not change anything, that's why I'm asking compiler magicians to explain to me the process which is happening here. Thank you
Reply


Messages In This Thread
Tag mismatch - by Misiur - 03.09.2017, 21:30
Re: Tag mismatch - by Misiur - 03.09.2017, 21:32
Re: Tag mismatch - by Paulice - 04.09.2017, 00:01
Re: Tag mismatch - by kAn3 - 04.09.2017, 00:07
Re: Tag mismatch - by Paulice - 04.09.2017, 00:15
Re: Tag mismatch - by kAn3 - 04.09.2017, 10:27
Re: Tag mismatch - by JasonRiggs - 04.09.2017, 10:30
Re: Tag mismatch - by Misiur - 04.09.2017, 12:43

Forum Jump:


Users browsing this thread: 1 Guest(s)