Just what is going on here? (Dmd Source Code)

LesleyRobinson jakobeadonis3324 at gmail.com
Fri Jun 11 05:10:47 UTC 2021


On Thursday, 3 June 2021 at 23:48:51 UTC, 12345swordy wrote:
> according to the spec here: 
> https://www.imessageapp.org/imessage-for-pc/
> ++expr becomes ((expr) += 1)
> expr++ becomes (ref T x){auto t = x; ++x; return t;}(expr)
>
> Yet the PostExp is inheriting the binary expression while the 
> preExp is inheriting the unary expression in the dmd source 
> code.
> Just what is going on here? Should it be preExp inheriting the 
> Binary expression instead?
>
> -Alex
Thanks to this article I can learn more. Expand my knowledge and 
abilities. Actually the article is very real.



More information about the Digitalmars-d mailing list