strong/weak typing and pointers

Aahz aahz at pythoncraft.com
Tue Nov 2 10:50:43 EST 2004


In article <2upaauF2e8107U1 at uni-berlin.de>,
Diez B. Roggisch <deets.nospaaam at web.de> wrote:
>Gabriel Zachmann wrote:
>>attribution lost:
>>>
>>>      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 mailing list