Path: utzoo!yunexus!ists!jarvis.csri.toronto.edu!mailrus!shadooby!samsung!aplcen!haven!uvaarpa!mcnc!rti!sheol!throopw From: throopw@sheol.UUCP (Wayne Throop) Newsgroups: comp.lang.c Subject: postfix indirection Summary: "It's in 'dere!" Message-ID: <0201@sheol.UUCP> Date: 16 Nov 89 18:45:46 GMT Article-I.D.: sheol.0201 References: <2765@levels.sait.edu.au> <6982@ficc.uu.net> Lines: 23 - peter@ficc.uu.net (Peter da Silva) - [...] I wish indirection was postfix. In - "My Ideal C" this would be !p^[i][j][k]!. - (I'm going to start a C-FUTURES mailing list soon, for discussions of - this nature. Mail to peter@ficc.uu.net if you want to join.) Hmmmmm. Why wait for the future? I use the standard postfix indirection operator for these cases, "[0]". (Of course, you still have to declare pointers funny, but you can dereference 'em postfix.) Peter's example becomes: p[0][i][j][k] instead of (*p)[i][j][k] (Golly, even the same number of characters...) No, seriously folks, I actually do do this to pointers sometimes when I "want postfix indirection". It can make stuff easier to read. Sometimes. -- Wayne Throop !mcnc!rti!sheol!throopw or sheol!throopw@rti.rti.org