strong/weak typing and pointers
Diez B. Roggisch
deets.nospaaam at web.de
Tue Nov 2 06:45:31 EST 2004
Gabriel Zachmann wrote:
>> printf("value is %d", f);
>
> This seems a very good example to me.
>
> 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!
--
Regards,
Diez B. Roggisch
More information about the Python-list
mailing list