I am new to python. I have a few questions coming from an armature!

Grant Edwards grant.b.edwards at gmail.com
Wed Aug 17 14:00:55 EDT 2016


On 2016年08月17日, MRAB <python at mrabarnett.plus.com> wrote:
> C uses "->" for dereferencing a pointer to the member of a struct.
>> If "p" points to a struct (record), then "*p" is that struct, and if 
> that struct has a member (field) "m", then that member can be accessed 
> by "(*p)->m" (the parens are necessary because of the operator 
> precedence).

ITYM (*p).m
> This can be abbreviated to "p->m".
>> Pascal, on the other hand, dereferences with a postfixed "^", so that 
> would be "p^.m".

-- 
Grant Edwards grant.b.edwards Yow! Is this an out-take
 at from the "BRADY BUNCH"?
 gmail.com 


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /