June 15, 2019 Using scanw Ncurses in D lang | ||||
---|---|---|---|---|
| ||||
how can I use the scanw() function; of the ncurses of the deimos.ncurses project since the conventional mode does not work 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. |
June 16, 2019 Re: Using scanw Ncurses in D lang | ||||
---|---|---|---|---|
| ||||
Posted in reply to Gabol | 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 |
Copyright © 1999-2021 by the D Language Foundation