![]() |
AW: Neuer FixInsight ist da!
It supports all Delphi versions from Delphi 2006 to XE7.
|
AW: Neuer FixInsight ist da!
... to XE8 :)
|
AW: Neuer FixInsight ist da!
Please have a look at
![]() Is it possible for FixInsight to raise a W1037? Dcc32 and Dcc64 fail to do so. |
AW: Neuer FixInsight ist da!
Nice idea, thanks.
I will think about implementing this. |
AW: Neuer FixInsight ist da!
Just noticed: You raise a W523 "Interface declared without a GUID" for generic interfaces. Generic interfaces cannot have a GUID.
And by the way: I believe a W504 (Missing INHERITED call in constructor/destructor) is not appropriate for a record constructor since they don't support inheritance in the first place. |
AW: Neuer FixInsight ist da!
Zitat:
However Roman might want to disable triggering that warning for generic interfaces. |
AW: Neuer FixInsight ist da!
Nice idea, gave it a short try and here are my first expiriences:
W522 does enforce "override" to be written in lower case (which is not required) W521 gives an error with:
Delphi-Quellcode:
W504 does warn on missing inherited in a constructor directly derived from TObject (even though it might be good practice(?)) I never call them in that circumstance.
function test: boolean;
var LResult: Boolean; begin try LResult := TRUE; finally Result := LResult; end; end; |
AW: Neuer FixInsight ist da!
Zitat:
Delphi-Quellcode:
and call the (empty) inherited constructor. Java, for example, is different: It implicitly calls the inherited parameterless constructor (if there's any). Otherwise, it's a compile time error.
TObject
Another reason is that it often happened to me that I omitted the (then redundant) call to the super constructor but later decided to derive the class from something other than
Delphi-Quellcode:
. Then, it's easy to miss adding the call to the inherited constructor back in. (FixInsight to the rescue! 8-))
TObject
|
AW: Neuer FixInsight ist da!
Zitat:
|
AW: Neuer FixInsight ist da!
Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 02:30 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz