Path: utzoo!utgpu!water!watmath!clyde!rutgers!cmcl2!phri!dasys1!wfp From: wfp@dasys1.UUCP (William Phillips) Newsgroups: comp.lang.c Subject: Re: Power operator? Summary: If you really want it (I don't)... Message-ID: <2516@dasys1.UUCP> Date: 11 Jan 88 08:42:27 GMT References: <11169@brl-adm.ARPA> <10026@ut-sally.UUCP> <553@gethen.UUCP> Organization: The Big Electric Cat Lines: 15 If you really want an exponentiation operator in ANSI C (as it happens, I don't) here's a candidate: << I'm implementing a compiler for a special purpose language that looks a lot like C. The language spec that I was given specifies that the << and >> operators, when applied to floating point objects, act as exponentiation and inverse exponentiation operators; a logical sort of extension of right and left shifts of integer objects, isnt it? -- William Phillips {allegra,philabs,cmcl2}!phri\ Big Electric Cat Public Unix {bellcore,cmcl2}!cucard!dasys1!wfp New York, NY, USA (-: Just say "NO" to OS/2! :-)