Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!uflorida!mlb.semi.harris.com!trantor.harris-atd.com!caesun6!mvm From: mvm@caesun6.harris-atd.com (Matt Mahoney) Newsgroups: comp.lang.c++ Subject: Re: overloading operator . and -> Message-ID: <5904@trantor.harris-atd.com> Date: 25 Mar 91 14:59:36 GMT References: <14.UUL1.3#8618@softrue.UUCP> <4608@lupine.NCD.COM> Sender: news@trantor.harris-atd.com Reply-To: mvm@caesun6.UUCP (Matt Mahoney) Organization: CAE Design Center, Harris Corp., Melbourne, Fl. Lines: 13 In article <4608@lupine.NCD.COM> rfg@NCD.COM (Ron Guilmette) writes: >Of course, it would be one thing if we only *called* -> an "operator", >but unfortunately the language (as now defined) further compounds >this sillyness by allowing "->" to be overloaded! Then again, overloading [] (as in a[i]) is useful (IMHO), but in C that's just syntactic sugar for *(a+i). Allowing -> to be overloaded is just being consistent. ------------------------- Matt Mahoney, mvm@epg.harris.com, 407-727-5431 #include // disclaimer.hpp in Zortech