postincrement behaviour (differences between dmd and gdc)

Kagamin spam at here.lot
Wed Apr 20 03:17:02 PDT 2011


Iain Buclaw Wrote:

> suggestion would be to treat such nonsensical code as an error - like "Cannot
> modify the value of a variable twice in the same expression." - as this kind
> of thing I would expect to be almost always a bug.

What about this?

x=(*y)++;


More information about the Digitalmars-d mailing list