Is it possible to use attributes in these scenarios:
// First scenario
[MyAttr]
TMyGuid = TGuid;
// Second scenario
[MyAttr]
TMyDT = TDateTime;
I found this article that says it's not possible to use attributes on aliases of simple ordinal types, only on actual sub-types by using the type keyword. I'm asking this because I believe declaring my TMyGuid type as a sub-type for TGuid rather than an alias will break a lot of my code. Is there really no way to use attributes on aliases like this?
Update: I realized that changing my declaration to
TMyGuid = type TGuid;
will only cause the loss of TGuidHelper. Unfortunately, class helper inheritance is still not available so I will have to rewrite it for my sub-type.