estimated max. usage: unknown, due to recursion
#7

Quote:
Originally Posted by NaS
Посмотреть сообщение
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:
Originally Posted by NaS
Посмотреть сообщение
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.
You earned your rep!
btw I tried to expand it by 10000 by now it shows it again xD how much should I expand?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)