While I can suggest cases where this would be useful (perhaps Roman Numerals), you better create an object with an integer and string attribute. Use the appropriate attribute in the appropriate context.
This gives you extra flexibility to overload operations using overload. In the Roman Numerals example example, the dualvar function will work until you want to add 2 Roman numerals together.
source share