I’d like to ask a general question regarding function names and how to handle them (in the context of possibly other unkown usages) in a way to avoid name clashes.
For concreteness, let’s use TF1, but I think the issues goes beyond that particular class. Let’s say also that my main concern is to work within a compiled application (i.e. outside CINT). Say I have common C/C++ function where I want to do something like
// use fa1 only locally, without taking references,
// pointers or anything like that.
Strictly speaking I don’t care about “fa1_name”, 'cause I will just use fa1 to call some method and that’s all, end of my C/C++ function and of the scope of fa1. I think, Root does care about the name: so I have to put something, I understand: How to do that? I mean, how to avoid using a name previously used by someone else (or even myself!) in another part of the program. If there’s a name collision, my newly created object (tough being on the stack) will take the place of the former in Root’s internal bookkeeping structures.
What’s the recommended way to follow in the cases?
Cheers, and thanks a lot for your help and clarification of this issue.