Using scanw Ncurses in D lang

ag0aep6g anonymous at example.com
Sat Jun 15 23:16:22 UTC 2019


On 15.06.19 23:20, Gabol wrote:
> example: scanw("% i", & number); // The compiler accuses error.
> 
> Error: function deimos.ncurses.curses.scanw(char* fmt, ...) is not 
> callable using argument types (string, int*)
> source/app.d(8,14):        cannot pass argument "0" of type string to 
> parameter char* fmt
> /usr/bin/dmd failed with exit code 1.

Off topic:

The string literal in the error message is wrong. It's "0" when it 
should be "% i". I've made a PR to fix it:
https://github.com/dlang/dmd/pull/10040


More information about the Digitalmars-d-learn mailing list