Einzelnen Beitrag anzeigen

freimatz

Registriert seit: 20. Mai 2010
1.383 Beiträge
 
Delphi 11 Alexandria
 
#4

AW: [return: unsafe] mit generischen Interfaces

  Alt 12. Jul 2022, 07:49
Zur Frage "Ein Compiler-Bug, oder?":

"An Unsafe reference is an interface reference that does not increase the reference count of the object they refer to. It is marked with the [unsafe] modifier."
Man könnte das so lesen, dass "an" und "the" Einzahl ist, eine generische Klasse aber nicht unbedingt Einzahl ist. Also kein Compiler Bug sondern es geht halt nicht.
  Mit Zitat antworten Zitat