If returning &o makes it so the stack pointer is invalid, I'm not sure how you'd properly return a pointer without something like malloc.
Development > Miscellaneous Development
Galaxy Scripting
- 4 posts
-
ckknight Author
- Battle.net
- ckknight.ckknight (NA)
- Join date
- Apr 25, 2006
- Location
- United States
- Reputation
- 162
- Posts
- 49
- Projects
- 21
- Last login
- May 07, 2012
-
computerpunk Author
- Join date
- Sep 03, 2008
- Location
- Romania
- Reputation
- 0
- Posts
- 1
- Projects
- 60
- Last login
- May 15, 2012
I see lots of "function" definitions of actual function return types. Is it a general (void *) handle or some special type?
- 4 posts
vjeux AuthorNo dynamic allocation
Can't seem to allocate new objects on the fly. There is no such things as malloc or new.
I tried to get the pointer from a local variable but it gets killed when leaving the function:
No Object Copy
If you want to copy an object, you have to do it by hand.
Casting
There is no casting allowed