View Single Post
API
Veteran Member
Join Date: May 2006
Old 12-15-2014 , 11:15   Re: New API and Syntax
Reply With Quote #254

Question: How am I supposed to store Function values into ADT arrays? I am getting this error:
Code:
error 130: cannot coerce functions to values
Trying to do this:
Code:
PushArrayCell(s_TimerData, p_CompleteCallback);
I noticed there is GetNativeFunction() for natives, but I don't see anything for ADT arrays. Also, what exactly are functions if they can not be represented as cells? AFAIK, they are just IDs, correct?

EDIT: Just as a note, I think a possible workaround for this would be to store the function as a string. That is, as long as GetFunctionByName() still works
EDIT2: Just to confirm, I am able to cheat around this using GetFunctionByName()
__________________

Last edited by API; 12-15-2014 at 11:41.
API is offline
Send a message via AIM to API