Path: utzoo!mnetor!uunet!nuchat!splut!jay From: jay@splut.UUCP (Jay Maynard) Newsgroups: comp.lang.c Subject: Re: Power operator? Message-ID: <326@splut.UUCP> Date: 12 Jan 88 01:13:27 GMT References: <6982@brl-smoke.ARPA> Organization: Confederate Microsystems, League City, TX Lines: 29 Summary: Here's a suggestion for an operator... In article <6982@brl-smoke.ARPA>, gwyn@brl-smoke.ARPA (Doug Gwyn ) writes: > If someone wants to propose a good syntax for a built-in exponentiation > operator, send it in during the second public review of the draft > standard. [...] I must have missed how to do this...besides, I'm not a C guru (a barely-reformed Turbo Pascal hacker!)... > The x ** y syntax conflicts with existing C, which already ascribes > a different meaning to this, although I do think that anyone who has > been writing ** without a space in between deserves problems anyway. (my smart remark suppressed) Does anyone really write it this way, instead of x * *y? > x ^ y is also already taken. So it is. How about (WARNING: KLUDGE-O-MATIC OUTPUT COMING) : x *^ y Well, it was an idea...kinda gives the flavor of a multiplicative operation, and I don't think ^ is legal as a monadic operator... -- Jay Maynard, K5ZC (@WB5BBW)...>splut!< | GEnie: JAYMAYNARD CI$: 71036,1603 uucp: {uunet!nuchat,academ!uhnix1,{ihnp4,bellcore,killer}!tness1}!splut!jay Never ascribe to malice that which can adequately be explained by stupidity. The opinions herein are shared by none of my cats, much less anyone else.