AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Neuer FixInsight ist da!

Ein Thema von Insider2004 · begonnen am 10. Feb 2015 · letzter Beitrag vom 24. Apr 2016
Antwort Antwort
Seite 6 von 7   « Erste     456 7      
Roman Yankovsky

Registriert seit: 18. Feb 2015
 
#51

AW: Neuer FixInsight ist da!

  Alt 28. Mär 2015, 14:06
It supports all Delphi versions from Delphi 2006 to XE7.
  Mit Zitat antworten Zitat
Roman Yankovsky

Registriert seit: 18. Feb 2015
 
#52

AW: Neuer FixInsight ist da!

  Alt 14. Apr 2015, 14:27
... to XE8
  Mit Zitat antworten Zitat
Der schöne Günther

Registriert seit: 6. Mär 2013
6.110 Beiträge
 
Delphi 10 Seattle Enterprise
 
#53

AW: Neuer FixInsight ist da!

  Alt 28. Mai 2015, 12:35
Please have a look at
http://www.delphipraxis.net/1303391-post1.html

Is it possible for FixInsight to raise a W1037? Dcc32 and Dcc64 fail to do so.
  Mit Zitat antworten Zitat
Roman Yankovsky

Registriert seit: 18. Feb 2015
 
#54

AW: Neuer FixInsight ist da!

  Alt 18. Jun 2015, 21:11
Nice idea, thanks.
I will think about implementing this.
  Mit Zitat antworten Zitat
Der schöne Günther

Registriert seit: 6. Mär 2013
6.110 Beiträge
 
Delphi 10 Seattle Enterprise
 
#55

AW: Neuer FixInsight ist da!

  Alt 2. Jul 2015, 08:30
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.

Geändert von Der schöne Günther ( 2. Jul 2015 um 08:39 Uhr)
  Mit Zitat antworten Zitat
Benutzerbild von Stevie
Stevie

Registriert seit: 12. Aug 2003
Ort: Soest
4.008 Beiträge
 
Delphi 10.1 Berlin Enterprise
 
#56

AW: Neuer FixInsight ist da!

  Alt 2. Jul 2015, 09:51
Generic interfaces cannot have a GUID.
They can - their use is just limited because all instantiations have the same GUID - which can be dangerous but also useful when you know what you are doing.
However Roman might want to disable triggering that warning for generic interfaces.
Stefan
“Simplicity, carried to the extreme, becomes elegance.” Jon Franklin

Delphi Sorcery - DSharp - Spring4D - TestInsight
  Mit Zitat antworten Zitat
Whookie

Registriert seit: 3. Mai 2006
Ort: Graz
441 Beiträge
 
Delphi 10.3 Rio
 
#57

AW: Neuer FixInsight ist da!

  Alt 2. Jul 2015, 11:15
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:
function test: boolean;
var
  LResult: Boolean;
begin
  try
    LResult := TRUE;
  finally
    Result := LResult;
  end;
end;
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.
Whookie

Software isn't released ... it is allowed to escape!
  Mit Zitat antworten Zitat
Der schöne Günther

Registriert seit: 6. Mär 2013
6.110 Beiträge
 
Delphi 10 Seattle Enterprise
 
#58

AW: Neuer FixInsight ist da!

  Alt 2. Jul 2015, 11:29
even though it might be good practice(?) I never call them in that circumstance.
I always explicitly derive from TObject 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.

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 TObject . Then, it's easy to miss adding the call to the inherited constructor back in. (FixInsight to the rescue! )
  Mit Zitat antworten Zitat
Whookie

Registriert seit: 3. Mai 2006
Ort: Graz
441 Beiträge
 
Delphi 10.3 Rio
 
#59

AW: Neuer FixInsight ist da!

  Alt 2. Jul 2015, 17:19
...but later decided to derive the class from something other than TObject . Then, it's easy to miss adding the call to the inherited constructor back in. (FixInsight to the rescue! )
That's one hell of an argument...
Whookie

Software isn't released ... it is allowed to escape!
  Mit Zitat antworten Zitat
Der schöne Günther

Registriert seit: 6. Mär 2013
6.110 Beiträge
 
Delphi 10 Seattle Enterprise
 
#60

AW: Neuer FixInsight ist da!

  Alt 20. Jul 2015, 11:59
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.
Also, whether class helpers should be checked for a missing "inherited" call in the constructor is also debatable. An "inherited" statement in a class helper constructor is illegal.
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 6 von 7   « Erste     456 7      


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 04:30 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