proposed syntax change

Daniel Keep daniel.keep.lists at gmail.com
Fri Aug 7 01:09:11 PDT 2009



Lars T. Kyllingstad wrote:
> Don wrote:
>> The operator which is REALLY missing is exponentiation.
> 
> 
> I've been really missing that one.
> 
> Which operators could be used for exponentiation? I've only ever seen
> a**b and a^b used, but I think those are out of the question for D.
> 
> -Lars

How about *^

^ isn't valid as a unary operator, thus a*^b cannot be mistaken for a*(^b)

It's a bit of a cop-out combining the two, but should be unambiguous.



More information about the Digitalmars-d mailing list