16.04.2016, 08:11
Quote:
Your code looks terrible!
"estimated max. usage: unknown, due to recursion" The warning is no problem at all. Just means the Compiler cannot tell what the max. size of the heap/stack is because some code runs in recursion. Recursion means if a function calls itself, all containing variables are initialized again, however the Compiler does not know how often this happens because it's decided run-time. I don't see a recursion in your code though. Is MiniString global? |
Quote:
As I said, it's not a problem that it shows that message when compiling unless your script doesn't run at all.
However you should put "new MiniString[X];" into your command (and other functions/callbacks where you use it). It will make it a tiny bit faster and it's commonly done that way. |
btw I tried to expand it by 10000 by now it shows it again xD how much should I expand?