Including windows.h

Araq rumpf_a at web.de
Tue Jun 23 08:45:55 UTC 2026


On Tuesday, 23 June 2026 at 04:00:02 UTC, Walter Bright wrote:
> (The correct way to do this is to make the .h files use 
> Standard C, and relegate the ding-dongs to the implementation 
> files that nobody ever needs to see.)

Nope, that is a terrible way to do as you lose crucial semantic 
information about the true parameter ranges, aliasing information 
etc. Your very own "gee-ha we can type check 
printf-format-strings" piece of trivia depends on non-Standard C 
extensions or else is tied to functions literally named printf 
etc.

The correct way it to treat the standard header files as abstract 
entities that might not even exist on the disc.



More information about the Digitalmars-d mailing list