On Saturday, 10 December 2016 at 08:25:49 UTC, Timon Gehr wrote:
On 10.12.2016 09:09, Is it possible to store different generic

This is intended (but surprising, and IMHO bad) behaviour, as D follows C integral promotion rules. (C# does not.) Mixed signed/unsigned operations first convert both arguments to unsigned.

Yeah, it was a pain to figure out what was wrong. Been spending more time than I wanted tracking this down.
  • ... Is it possible to store different generic types? via Digitalmars-d
    • ... Is it possible to store different generic types? via Digitalmars-d
      • ... Stefan Koch via Digitalmars-d
        • ... Is it possible to store different generic types? via Digitalmars-d
          • ... Timon Gehr via Digitalmars-d
      • ... Ali Çehreli via Digitalmars-d
        • ... Is it possible to store different generic types? via Digitalmars-d
    • ... Timon Gehr via Digitalmars-d
      • ... bauss (wtf happend to my name took some old cached title LOL??) via Digitalmars-d

Reply via email to