D - (void)
- Pavel Minayev (6/6) Jan 07 2002 There is a problem with functions (mostly C ones) which
- Pavel Minayev (2/2) Jan 07 2002 As you might have guessed, simple search-and-replace
- Walter (4/6) Jan 07 2002 D should issue an error message about trying to use void as a parameter
- Pavel Minayev (4/10) Jan 07 2002 Well it doesn't. At least in stdio.d. And so it was when
-
Walter
(3/15)
Jan 07 2002
It will
.
There is a problem with functions (mostly C ones) which have their parameter list declared as (void) - lots of such declarations are in stdio.d. D doesn't complain about prototypes, but when it's time to call the function, it gives an "argument mismatch" error. Just try to call getch() or kbhit(), you'll see what I mean.
Jan 07 2002
As you might have guessed, simple search-and-replace of (void) to () solves the problem.
Jan 07 2002
"Pavel Minayev" <evilone omen.ru> wrote in message news:a1caov$14ra$1 digitaldaemon.com...As you might have guessed, simple search-and-replace of (void) to () solves the problem.D should issue an error message about trying to use void as a parameter type!
Jan 07 2002
"Walter" <walter digitalmars.com> wrote in message news:a1d0bt$1ich$1 digitaldaemon.com..."Pavel Minayev" <evilone omen.ru> wrote in message news:a1caov$14ra$1 digitaldaemon.com...Well it doesn't. At least in stdio.d. And so it was when I translated winsock and opengl...As you might have guessed, simple search-and-replace of (void) to () solves the problem.D should issue an error message about trying to use void as a parameter type!
Jan 07 2002
"Pavel Minayev" <evilone omen.ru> wrote in message news:a1d0nu$1if1$1 digitaldaemon.com..."Walter" <walter digitalmars.com> wrote in message news:a1d0bt$1ich$1 digitaldaemon.com...It will <g>."Pavel Minayev" <evilone omen.ru> wrote in message news:a1caov$14ra$1 digitaldaemon.com...Well it doesn't. At least in stdio.d. And so it was when I translated winsock and opengl...As you might have guessed, simple search-and-replace of (void) to () solves the problem.D should issue an error message about trying to use void as a parameter type!
Jan 07 2002