On 12/10/2016 12:16 AM, Is it possible to store different generic types? wrote:

> Okay the issue seem to be that D casts the left-hand argument to the
> same type as the right-hand argument.

Seems to be but not true. It's more like "anything that touches an unsigned type turns unsigned". :)

  https://dlang.org/spec/type.html#integer-promotions

The more important topic there is the second one: "Usual Arithmetic Conversions"

Ali

  • ... 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