K&R-style variadic functions

Regan Heath regan at netmail.co.nz
Wed Jul 18 03:25:30 PDT 2012


In any case.  It think the practical solution to this problem is to assume  
you're working with modern code, and have a command line option to make it  
assume K&R or old-style declarations.

In the old-style mode you would have to assume a function with an empty ()  
could have any number of parameters and the best you can do is produce:

extern (C) <ret> <name>(/* fill in the blanks please*/);

R


More information about the Digitalmars-d mailing list