I can't remember exactly what I did, so I need to puzzle out the code to try to figure out what it does. The idea of having callbacks inside the interconnect which are register-able seems like it would be handy for more than just me.
This needs a few things:
- Make sure the code is flexible so it works in other peoples use cases
- Document how it works
- Make it easier to register functions. Right now I believe you need to use asterisks to dereference things or something, which makes the syntax unwieldy. It's possible that this is caused by legacy code from very old perl days, but it might need to stay around if Expect still supports ancient perls.