clone_object is what mega_apply uses when you call a program, so it's probably the right way. From a quick peek at the implementation, I can't see any way for it to return NULL. It can only throw an exception, return a newly allocated struct object, or perhaps abort or segfault.
/ Martin Stjernholm, Roxen IS
Previous text:
2003-01-28 12:54: Subject: How do you clone a program
How do you create a object from aprogram in C/CMOD? I've been trying with clone_object() but I just get a NULL value from it.
/ Peta, jo det är jag