Ok, so i tried:
function* function_ptr(var my_var);
function my_func(var my_var)
{ <code>
}
function main()
{ STRING* exec_str = " ";
str_cpy(exec_str,"function_ptr = ");
str_cat(exec_str,"my_func");
var_for_name(exec_str);
if(function_ptr)
{ function_ptr(1);
}
}
This does not work. function_ptr gets set to NULL instead of the function. Can you not use var_for_name to reassign function pointers? You can only use it to change var type variables, i guess?