[Issue 19612] Wrong(?) code compiles

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jan 25 08:53:54 UTC 2019


anonymous4 <dfj1esp02 at sneakemail.com> changed:

           What    |Removed                     |Added
           Hardware|x86_64                      |All
                 OS|Linux                       |All

--- Comment #2 from anonymous4 <dfj1esp02 at sneakemail.com> ---
C uses this idiom to maintain compatibility between function declarations in
the header file and function definitions in the implementation file. When
implementation includes the header, the compiler checks that declarations match
definitions and can report a warning if they don't. Well, extern just allows to
declare a function, and provide implementation elsewhere, not restricted where.


More information about the Digitalmars-d-bugs mailing list