On Fri, Apr 14, 2000 at 08:55:14AM +0200, Anders Holm wrote: > Use of variadic functions > > printf uses it. It looks nice but it is a hack. > > Please do not introduce use of variadic functions in new places. > > It is not necessay and it is likely to cause a lot of pain. > Variadic functions may have been a hack in some distant past, but with ANSI C and "stdarg.h" it is a useful language feature and "printf", "vsprintf" and other *extremely* useful things would not be possible without it. It is very unfortunate that the C++ IO library and the Java IO library lack sprintf(). Hopefully this oversight will not lead th the premature demise of said languages, as it killed Pascal and Modula-2. The fact that CINT reportedly does not handle stdarg.h stuff is regretful but does not bother me too much. Just one more compiler bug to dance around. -- Konstantin Olchanski Physics Department, Brookhaven National Laboratory, Long Island, New York olchansk@bnl.gov
This archive was generated by hypermail 2b29 : Fri Apr 14 2000 - 10:13:05 EDT