[Issue 22342] importC: Error: function 'func()' is not callable using argument types '(int)'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 28 22:23:25 UTC 2021


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

--- Comment #1 from Iain Buclaw <ibuclaw at gdcproject.org> ---
C11 6.7.6.3-14: An identifier list declares only the identifiers of the
parameters of the  function. An empty list in a function declarator that is
part of a definition of that function specifies that the function has no
parameters. The empty list in a function declarator that is not part of a
definition of that function specifies that no information about the number or
types of the parameters is supplied(*).

(*) See "future language directions" (6.11.6).

C11 6.11.6: The use of function declarators with empty parentheses (not
prototype-format parameter type declarators) is an obsolescent feature.

--


More information about the Digitalmars-d-bugs mailing list