Delphi tip of the day:
{$WARN UNSUPPORTED_CONSTRUCT ERROR}
It will throw a compiler error when you use an attribute that isn’t defined as the above [WayBack] turns a warning into an error as normally [WayBack] UNSUPPORTED_CONSTRUCT is only a warning.
Which means that this code now fails:
type TmyClass = class [djhgfskdhgks] procedure One; end;
Thanks [WayBack] +Agustin Ortu for posting this tip!
–jeroen
via:
- [WayBack] I am so crossed—-I’ve spent already an hour to figure out why my custom attributes don’t work and realised that the compiler doesn’t check whether the… – Jeroen Wiert Pluimers – Google+
- [WayBack] I am so crossed—-I’ve spent already an hour to figure out why my custom attributes don’t work and realised that the compiler doesn’t check whether the… – John Kouraklis – Google+