Ellipsis formal parameter & CRT module questions...
Two quick questions... 1) According to the HTML docs, ellipsis (...) are allowed in formal parameters but the code has no way (yet) of accessing them. If I specify procedure printf(cpFmt : cstring; ...); C; in a program & use it in that program, I can pass as many actual parms as I want. If I specify this in the 'interface' section of a UNIT, I cannot pass more than one parm to the procedure without the compiler stating that I passed too many parameters. I can come up with a work-around but if this will work in the next release, I won't worry about it. 2) According to http://fjf.gnu.de/gpc-todo_6.html#SEC6 (Implemented features) there is a portable ncurses CRT unit. Is this built into the RTL (I couldn't find it on first look) or is it a seperate unit (or module)? TNX! and BTW, GREAT WORK EVERYBODY! Ken L. kc7rad@vegasnet.net
kc7rad@vegasnet.net wrote:
[...] If I specify this in the 'interface' section of a UNIT, I cannot pass more than one parm to the procedure without the compiler stating that I passed too many parameters. [...]
Indeed (ken1.pas). Thanks for the bug report! (-: Peter -- Peter Gerwinski, Essen, Germany, http://home.pages.de/~Peter.Gerwinski/ Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-980830 PGP key on request - 6C 94 45 BE 28 A4 96 - 0E CC E9 12 47 25 82 75 Fight the SPAM and UBE! - http://spam.abuse.net/ - http://maps.vix.com/
participants (2)
-
kc7rad@vegasnet.net -
Peter Gerwinski