Forum: Object-Pascal / Delphi-Language
by himitsu,
24. Feb 2024
Das war ja nur für den Vergleich von MIT und OHNE :D
Forum: Object-Pascal / Delphi-Language
by himitsu,
24. Feb 2024
Gute Frage, laut Hilfe (DocWiki) gibt es in C++ ein Attribut, für Weak-Typen.
https://docwiki.embarcadero.com/RADStudio/Sydney/de/GNU-Attribute
Im Delphi probiert, funktioniert es nicht.
type
NewInt = type Integer; // wirkungslos (keine CompilerWarnung, aber Weak hat eh nur eine Wirkung auf Variablen mit Managed-Types ala Interface)
NewInt = type Integer; // compiliert nicht
...