Moin Hagen,
![](styles/elise/misc/quote_24x24.png)
Zitat von
negaH:
Warum Konstanten ??
![](styles/elise/misc/quote_24x24.png)
Zitat von
Christian Seehase:
Konstanten ..., die etwas darüber aussagen, was das jeweilige Bit zu bedeuten hat.
z.B. finde ich das hier übersichtlicher
(ausgedachtes Beispiel)
Delphi-Quellcode:
const
_IsValidIndex = $4000;
begin
if (dwFlags and _IsValidIndex) <> 0 then ...
end;
als das
if (dwFlags and $4000) <> 0 then ...
Darum Konstanten