Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!mimsy!mojo!russotto From: russotto@eng.umd.edu (Matthew T. Russotto) Newsgroups: comp.sys.mac.programmer Subject: Re: THINK C Suggestions Message-ID: <1990Oct9.020415.16763@eng.umd.edu> Date: 9 Oct 90 02:04:15 GMT References: <20912@well.sf.ca.us> <1990Oct7.232419.20984@ida.liu.se> <1990Oct8.154744.15837@nntp-server.caltech.edu> Sender: news@eng.umd.edu (The News System) Organization: College of Engineering, Maryversity of Uniland, College Park Lines: 19 In article <1990Oct8.154744.15837@nntp-server.caltech.edu> palmer@nntp-server.caltech.edu (David Palmer) writes: >Here's a suggestion for the next 'Think C'. Allow the operator '->>' to >dereference handles, just as '->' dereferences pointers. > >This, of course, is non-standard, and so there >should be a 'preferences' item to disallow it, but it would make things >much more pleasant. > >(The reason why '->>' should be used instead of '-->' is because it >shows up better, and it would not be parsed as a post-decrement >greater-than combination.) No, instead as minus shift right. You can't win. If you make a smart compiler, you can recognize handles to structs and add the extra de-reference automagically-- I'd like to see that (in both THINK and MPW.) -- Matthew T. Russotto russotto@eng.umd.edu russotto@wam.umd.edu .sig under construction, like the rest of this campus.