prototype for parrot_object_register