DMD 1.019 and 2.003 releases
Derek Parnell
derek at psych.ward
Mon Jul 23 13:54:41 PDT 2007
On Mon, 23 Jul 2007 09:45:57 -0700, Walter Bright wrote:
> Don Clugston wrote:
>> I'm having trouble understanding the difference between "isScalar",
>> "isArithmetic", and "isIntegral". Is this table correct?
>>
>> int uint real wchar
>> Y Y Y N isArithmetic
>> N N Y N isFloating
>> Y Y N Y isIntegral
>> Y Y Y Y isScalar
>> N Y N N isUnsigned
>>
>> ----------------
>
> wchar is arithmetic and unsigned.
Are you serious??? Why are we allowed to do mathematics with characters?
dchar r = power( 'a' * 'b' + 'd' * '€') / '$';
Doesn't make sense so why is wchar arithmetic?
If you insist in this wart, then we also need an 'isCharacter' trait to
distinguish characters from numbers.
--
Derek Parnell
Melbourne, Australia
skype: derek.j.parnell
More information about the Digitalmars-d-announce
mailing list