Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
importc is used to import C functions - it stands to reason that these should not use nimcall calling convention by default, but rather cdecl - not doing this leads to unexpected failures when calling C functions, for example on win32.
importc
is used to importC
functions - it stands to reason that these should not usenimcall
calling convention by default, but rathercdecl
- not doing this leads to unexpected failures when callingC
functions, for example on win32.nim 1.0.x