Mail Archives: djgpp/1996/09/05/03:56:51
Someone wrote:-
> Hey, that's real something! I'd vote to reject all the '{/}' also!
C and C++ find a use for all but two of the printing ascii characters; but `
and @ are left out in the cold. What I would use them for in C and C++ if I
could, would be:-
x`n as x to the power of n, since ^ already means `nonequivalence'. C/C++ is
the only language that I know of (except assembly language compilers, and one
primitive compiler (Elliott Autocode) for an ancient very small mainframe),
that has the grossly inconvenient misfeature of having no power operator! The
function pow(x,n) isn't the same, as its calls with a small integer constant
exponent can't be optimized at compile time anything like as easily.
If p is a pointer type (say here, an int*), n AT p as "the array of n int's
starting at *p". m AT n@p could define an array int[m][n] starting at *p.
- Raw text -