Mirar @ Pike developers forum wrote:
Well, it would do exactly the same thing as would happen in Pike itself.
push_object(obj); push_text("something"); f_index(2);
I went with something like:
ref_push_object(portal); ref_push_string(MK_STRING("_datarowdesc")); f_arrow(2); datarowdesc=Pike_sp[-1].u.array; pop_stack();
And about type checking, the helper class knows that the types are filled correctly before it's being called. I only need to account for bad user input/database behaviour.
Incidentally, it's these silly things like, when to use push_string or when to use ref_push_string and the same for push_object vs. ref_push_object which take time to figure out.