https://issues.dlang.org/show_bug.cgi?id=19612

anonymous4 <[email protected]> changed:

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

--- Comment #2 from anonymous4 <[email protected]> ---
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.

--

Reply via email to