strong/weak typing and pointers

JCM joshway_without_spam at myway.com
Wed Nov 3 15:31:37 CET 2004


Gabriel Zachmann <zach at cs.uni-bonn.de> wrote:
>>  You didn't mention C++. Try this ...
>>  
>>     std::string s = "Wow";
>>     s += 3.141592654; // Perfectly valid
>>     s = 3.141592654;  // Also valid

> ah, good example.

> So, would it be valid to say:
> the more coercion (or automatic conversion) rules a language has, the
> weaker the typing?

If that's what your definition of weak typing is.  The OP seemed to be
asking about re-interpreting the representation of a value of one type
as a different type.



More information about the Python-list mailing list