6 hours later (on Mon, 08 Mar 2010 19:44:41)
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.
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.
I see lots of "function" definitions of actual function return types. Is it a general (void *) handle or some special type?
- #1
vjeux ModeratorNo 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