Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!ut-emx!walt.cc.utexas.edu!mayoff From: mayoff@walt.cc.utexas.edu (Rob "The" Mayoff) Newsgroups: comp.lang.c Subject: New assignment operator ->= ? Message-ID: <24707@ut-emx.UUCP> Date: 16 Feb 90 04:55:16 GMT Sender: news@ut-emx.UUCP Reply-To: mayoff@walt.cc.utexas.edu (Rob "The" Mayoff) Organization: Talisman & The University of Texas at Austin Lines: 17 It occurred to me some time ago that every binary operator in C (except the logical ones - &&, ||)) except one have an analogous assignment operator: + has +=, - has -=, & has &=, etc. Well, what about ->? In tracing linked lists, I often do something like: p = head; while (*p->next) p = p->next; to get to the end, or something similar. So why not p = head; while (*p->next) p ->= next; Anyone else agree? __ /\_\ Rob Mayoff \/_/ mayoff@ccwf.cc.utexas.edu