On Thu, 26 Mar 2015 05:44:13 +0000, Jean pierre wrote:

>   auto i = s++; // OUCH, but we expect S.i...

but why one expecting `i` here? there IS `opUnary` overload, and `++` 
corretly transformed to prefix form. there is simply NO postfix form in 
semantically analyzed code, *all* postfix increments and decrements are 
transformed.

or, to say it another way, D has no postfix inc/dec operator, there are 
only prefix forms. postfix form it just a compiler syntactic sugar.

Attachment: signature.asc
Description: PGP signature

Reply via email to