Why are unsigned to signed conversions implicit and don't emit a warning?

Andrej Mitrovic none at none.none
Sun Apr 10 16:55:17 PDT 2011


And I just remembered Tuples can be constructed just like regular structs (which they are underneath):
RGBTuple GetRGB(COLORREF cref)
{
    return RGBTuple(GetRValue(cref), GetGValue(cref), GetBValue(cref));
}


More information about the Digitalmars-d-learn mailing list