You're talking about engine_getscript? (http://www.conitec.net/beta/engine_getscript.htm) This is actually a pretty bad idea. It's slow and inelegant. And it won't save you assigning the function address to a prototype. Why taking the detour of there is a straight way?
Always learn from history, to be sure you make the same mistakes again...