What is the best way to add generic operations so that:
are both maintained? For example:
OR should I write
OR something else (templates, macros, ...)?
Also, is there a way to use (and should I use?) the borrow pragma in this case? Thanks.
No, you can't use borrow. What should that mean?
Sure go ahead, make it generic. But try to not break client code.