strong/weak typing and pointers
aahz at pythoncraft.com
Tue Nov 2 16:50:43 CET 2004
In article <2upaauF2e8107U1 at uni-berlin.de>,
Diez B. Roggisch <deets.nospaaam at web.de> wrote:
>Gabriel Zachmann wrote:
>>> printf("value is %d", f);
>> Note that this is also an example showing that C++ does contain a little
>> bit of dynamic typing, too, isn't it?
>Where do you get that idea from? Modern compilers are aware of printf,
>and have special type-checking rules built into them that verify
>that you pass the right number and types of arguments for the format
>string. And thats totally static, as it is done at compiletime!
The format string has to be static? That's news to me.
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
WiFi is the SCSI of the 21st Century -- there are fundamental technical
reasons for sacrificing a goat. (with no apologies to John Woods)
More information about the Python-list