How to receive a COM object reference as a RESULT (not an out parameter!) of another COM call?

Actually, I am looking for mIRC equivalent of the following Visual Basic code:

Set new_object = old_object.return_me_an_object("hello", 1, 2, "world")


Andrew Usachov