precedence of cast

Fawzi Mohamed fmohamed at mac.com
Fri Aug 29 00:36:49 PDT 2008


On 2008-08-28 18:32:48 +0200, torhu <no at spam.invalid> said:

> Fawzi Mohamed wrote:
>> I was wondering about the precedence of the cast operator.
>> By experimenting I found that it is less than . and more than +, but I 
>> was wondering if there isn't a place where this is exactly explained.
>> A table with the precedence of all operators would be welcome :)
> 
> I just use a C operator precedence table, D follows that:
> 
> http://www.difranco.net/cop2220/op-prec.htm

thanks, I wasn't sure about cast, but it seems that also that follows 
the C conversion (even with a different syntax).

Fawzi



More information about the Digitalmars-d-learn mailing list