strong/weak typing and pointers

Mel Wilson mwilson at the-wire.com
Thu Oct 28 16:11:53 EDT 2004


In article <slrnco26s8.311.zach at fuji.informatik.uni-bonn.de>,
Gabriel Zachmann <zach at cs.uni-bonn.de> wrote:
>
>Is it correct to say that strong/weak typing does not make a difference
>if one does not use any pointers (or adress-taking operator)?

   One effect of weak typing is to put more reliance on
operators.  In Perl, for instance the string operator `lt`
does a string compare to find that "10" is less than 2
(lexically) and the numeric operator `<` finds that "10" is
not less than 2 (numerically).  Nothing to do with pointers
at all.

        Regards.        Mel.



More information about the Python-list mailing list