Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'operator': 0.03; 'subject:Python': 0.06; 'operator,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:language': 0.09; 'sure,': 0.09; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:programming': 0.16; 'syntactic': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'header:User-Agent:1': 0.23; 'pointer': 0.24; 'subject:/': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In- Reply-To:1': 0.27; 'chris': 0.29; 'dec': 0.30; 'struct': 0.31; 'figure': 0.32; 'but': 0.35; 'really': 0.36; 'to:addr:python- list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'subjectcharset:utf-8': 0.72; 'received:myvzw.com': 0.84; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dave Angel Subject: =?UTF-8?Q?Re:_Re:_Experiences/guidance_on_teaching?= =?UTF-8?Q?_Python_as_a_first=0A_programming_language?= Date: Wed, 18 Dec 2013 15:52:43 -0500 References: <20131212213602.806ef8fd2626ca6f34bc83d6@gmx.net> <20131216213225.2006b30246e3a08ee241a191@gmx.net> <20131217165144.39bf9ba1cd4e4f27a96893ca@gmx.net> <52b0fb4f$0$29973$c3e8da3$5496439d@news.astraweb.com> <52b15b62$0$29973$c3e8da3$5496439d@news.astraweb.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: 94.sub-70-208-163.myvzw.com In-Reply-To: User-Agent: Groundhog Newsreader for Android X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1387399894 news.xs4all.nl 2949 [2001:888:2000:d::a6]:52390 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:62341 On Thu, 19 Dec 2013 01:55:10 +1100, Chris Angelico 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