Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reference as return type.
#4
You don't need to worry about any memory management in CBot - the interpreter will handle everything for you (unless there is a bug, which is very likely because of how terrible the CBot interpreter code is). The array will be destroyed as soon as all references to it go out of scope (in this case - at the end of Spider2 function)


Messages In This Thread
Reference as return type. - by clop1000 - 07-04-2016, 03:34 PM
RE: Reference as return type. - by krzys_h - 07-04-2016, 03:51 PM
RE: Reference as return type. - by clop1000 - 07-04-2016, 04:22 PM
RE: Reference as return type. - by krzys_h - 07-04-2016, 04:40 PM
RE: Reference as return type. - by clop1000 - 07-04-2016, 05:14 PM
RE: Reference as return type. - by krzys_h - 07-04-2016, 07:12 PM

Forum Jump:


Users browsing this thread: 4 Guest(s)