strong/weak typing and pointers
Diez B. Roggisch
deetsNOSPAM at web.de
Tue Nov 2 12:07:49 EST 2004
>>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.
No, but if it is, the compiler can perform type checking:
http://www.ugrad.physics.mcgill.ca/reference/Gcc/gcc_4.html#SEC84
--
Regards,
Diez B. Roggisch
More information about the Python-list
mailing list