Nim is a compiled, garbage-collected systems programming language with a design that focuses on efficiency, expressiveness, and elegance (in that order of priority).
std/winlean keep causing problems, but for backward compatibility, we cannot correct the wrong definitions because they are exported.
The solution
Make a replacement module for std/winlean, and replace the std/winlean gradually. We need to correct some procs mainly which are not exported in the standard libraries.
For example we need to change these procs first. Note that createWinApi is not exported, so we can correct the definitions safely.
Ref https://github.com/nim-lang/Nim/issues/12327
The problem
std/winlean
keep causing problems, but for backward compatibility, we cannot correct the wrong definitions because they are exported.The solution
Make a replacement module for
std/winlean
, and replace thestd/winlean
gradually. We need to correct some procs mainly which are not exported in the standard libraries.For example we need to change these procs first. Note that
createWinApi
is not exported, so we can correct the definitions safely.Then we should consider whether we can make further progresses.