August 30, 2001 Re: typesafe printf | ||||
---|---|---|---|---|
| ||||
Posted in reply to Russ Lewis | "Russ Lewis" <russ@deming-os.org> wrote in message news:3B8D3EBD.F54188D2@deming-os.org... > John Carney wrote: > > > "Russ Lewis" <russ@deming-os.org> wrote in message news:3B8BB246.735ECA86@deming-os.org... <snip> > To really make it typesafe, you need to use the compiler to resolve a variable-argument call down to a series of known-argument calls with good typechecking. Then the library will know what you passed it, because the compiler calls the right function. I see your point. I still don't like it. > > printf ("And we're %d%% with you on that one\n", 10 * 10) > > LOL! > |
Copyright © 1999-2021 by the D Language Foundation