word1.word2 notation
Paul E. Black
paul.black at nist.gov
Wed Aug 25 12:24:29 EDT 1999
Yeoh Yiu <squid at panix.com> writes:
> I've noticed in various languages, there is a construction
> of expressions with a dot in the middle.
>
> int foo.bar = 42; // doesn't happen this way
>
> What is the name of this technique and the name of methods
> (or variables ?) so constructed ?
The dot construction is merely syntax, and, as you have observed, is
used in different languages. The syntax indicates different semantics
in different languages and therefore has different names.
-paul-
--
Paul E. Black (p.black at acm.org)
More information about the Python-list
mailing list