postincrement behaviour (differences between dmd and gdc)

Mafi mafi at example.org
Wed Apr 20 05:22:40 PDT 2011


Am 20.04.2011 13:36, schrieb Dmitry Olshansky:
>>
>> In this case the overall semantics are identical but your expandation
>> looks like gdc's and mine like dmd's. Therefore I think dmd's is more
>> correct although less useful.
>>
>> Generally I think it should just be an error to assign twice in the
>> same expression.
>>
> Why not ? I kind of liked this one:
> a = b = 0;

I also like it and I meant assign the same variable twice in one statement.

Mafi


More information about the Digitalmars-d mailing list