Copying/Merging Logic Bricks

Is there any way to merge the logic bricks from one object into another?
Right now, the “copy logic bricks” option simply replaces one for the other.
Joining the two objects in hope that it would also merge their logic, does not work.
Interestingly enough, there’s an option for merging properties, but nothing that I can see for logic bricks.
Anyone have any suggestions?

It should be possible to write a blender python operator that can do that.

I think the existing “copy” options are pure python things, but I’m not sure.

This is something you could ask in the blender Python scripting forum.