Error : Arrays cannot be compared.
Monkey Forums/Monkey Programming/Error : Arrays cannot be compared.
| ||
Hello, I have tried to compile a game with the 0.7xx versions of monkey and it returns the following message. (With prior versions compiled well). ________________________________________________________________________ "E:/programacion/MonkeyXPro79e/bin/transcc_winnt" -target=Android_Game -config=Release -run "E:/programacion/proyectos_monkey/game_MR_CANDY/game.monkey" TRANS monkey compiler V1.72 Parsing... Invalid UTF-8 in file: E:/programacion/proyectos_monkey/game_MR_CANDY/mylibs/plusFunctions.monkey Invalid UTF-8 in file: E:/programacion/proyectos_monkey//game_MR_CANDY/types/class_Tline.monkey Semanting... E:/programacion/MonkeyXPro79e/modules/monkey/list.monkey<28> : Error : Arrays cannot be compared. Done. ________________________________________________________________________ When i compiled the game with versions prior to 0.70 does not give any problem and creates the executable correctly, but if I try to compile with 0.7xx I get this error. Anyone have any idea about why this happen?. I can't include a code to try to reproduce the error because the program is very large and I don't know where the problem is. It's something really weird and i'm really worry because this could be a problem for future upgrades. Regards, Javier |
| ||
Can you provide a small code sample? |
| ||
You *have* deleted the Build folder, right? |
| ||
Hello ziggi, It'̈s complex to provide a small code sample. Source code is really big and I don't know where the problem is. With versions prior to 0.70 no problems. It's really weird. Gerry Quinn: Build folders are allways deleted. That's not the problem :( Regards, Javier |
| ||
Well it indicates that the error happens in line 28 of the list.monkey file. From what I can tell, it seems that you are trying to compare two arrays NOT two elements like you are supposed to. Are you storing multiple arrays on the list? Thats what seems to be the error. what's in your compare method? |