Re: Re: Experiences/guidance on teaching Python as a first programming language

Dave Angel davea at davea.name
Wed Dec 18 15:52:43 EST 2013


On Thu, 19 Dec 2013 01:55:10 +1100, Chris Angelico <rosuav at gmail.com> 
wrote:
> Sure, but you can figure out whether p is a local struct or a local
> pointer to some other struct by looking at its declaration. Do you
> also need to look at every usage of it? 

C is a glorified macro assembler.  So the -> operator is not 
analogous to the dot operator, it's Syntactic sugar:

p-> a. Is really
(*p).a

-- 
DaveA




More information about the Python-list mailing list