August 29, 2008 Re: precedence of cast | ||||
---|---|---|---|---|
| ||||
Posted in reply to torhu | On 2008-08-28 18:32:48 +0200, torhu <no@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
|
Copyright © 1999-2021 by the D Language Foundation