Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!hpl-opus!hpnmdla!hpsad!sdw From: sdw@hpsad.HP.COM (Steve Warwick) Newsgroups: comp.lang.c++ Subject: Re: taking powers with "^" Message-ID: <1920004@hpsad.HP.COM> Date: 25 Jun 91 15:45:45 GMT References: <1920003@hpsad.HP.COM> Organization: HP Signal Analysis Division - Rohnert Park, CA Lines: 16 The fact that overloaded operators inheret the precedence of the underlying operator has always seemed strange to me - it seems to retrict the meaning of "overloading" and "operator definition", although from the standpoint of readability, it seems like the right thing to do. For my purposes, making a pre-defined power operator a part of the language would go a long way to obsoleting F**TRAN, since so many other problems have been so elegently solved However, people seem to like C++ as a "meta language", so a generic operator definition feature fits the style better.... This is a case where having the ability to define an operator, such as "^^" or "@@" makes sense. ( also with a reletive precedence and grouping preference ).