LWN.net Logo

Still not clear it's better

Still not clear it's better

Posted Jan 28, 2010 13:13 UTC (Thu) by nlucas (subscriber, #33793)
In reply to: Still not clear it's better by dwheeler
Parent article: GCC to merge Go support

Even better would be to do what D does. If you want a member of struct pointed by a pointer then it's no different from any other variable. Just use the . (dot).


(Log in to post comments)

Still not clear it's better

Posted Jan 28, 2010 15:31 UTC (Thu) by zmower (subscriber, #3005) [Link]

Ada also uses dot notation. You can do A.Field to implicitly access a field or A.all to explicitly deference an access type. We prefer := for assignment and = for comparison. Thankyou Pascal.

a.b.c.d.e := a.b.c.d.e * p.q.r * x(2).all;

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds