We have a WayPoint class. But at some point, we decided to rename the class to Placemark . However, we do not want to change the name of the class, because this will lead to a big change in the existing code. So I added one line of typedef at the bottom of the header file and started using Placemark in any new code happily ever since.
@interface WayPoint : _WayPoint @end typedef WayPoint Placemark;
But there is one more thing that I do not understand. If I try to use forward definition in another header file. I can only use:
@class WayPoint;
If I use:
@class Placemark;
I will get the error message:
Overriding "tags" as another character
Why?
source share