Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Delphi-News aus aller Welt (https://www.delphipraxis.net/58-delphi-news-aus-aller-welt/)
-   -   New Delphi 10.3 Warning "Unknown Custom Attribute" (https://www.delphipraxis.net/198802-new-delphi-10-3-warning-unknown-custom-attribute.html)

DP News-Robot 30. Nov 2018 16:30

New Delphi 10.3 Warning "Unknown Custom Attribute"
 
Up to Delphi 102, if you used a custom attribute that was not known to the compiler (because you typed*it incorrectly*or a unit was missing in the uses statement), you'd receive the warning:

Warning: W1025 Unsupported language feature: 'custom attribute' This message was misleading, because the feature has been in the language for quite some time, it was just using an undefined symbol in it. There is a large list of reports on this issue, including*https://quality.embarcadero.com/browse/RSP-20384.*

Starting with 10.3, the same code will trigger a new specific warning:

Warning: W1074 Unknown custom attribute This conveys a more specific information. It also makes it is easier to turn this warning into an error -- which would often make sense, by using the directive:

{$WARN UNKNOWN_CUSTOM_ATTRIBUTE ERROR} In the past you could achieve the same by turning the unsupported language feature*warnings*into errors, but that could have included also other unwanted scenarios.

http://feeds.feedburner.com/~r/marco...~4/UuxN0ScA4EM

Weiterlesen...


Alle Zeitangaben in WEZ +1. Es ist jetzt 01:55 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz