http://d.puremagic.com/issues/show_bug.cgi?id=7857


Kenji Hara <k.hara...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Kenji Hara <k.hara...@gmail.com> 2012-04-08 08:57:51 PDT ---
Not only a problem of integer based enum type.

import std.stdio;
void main()
{
    enum EI : int    { A, B }
    enum ED : double { A, B }
    enum EC : char   { A, B }
    enum ES : string { A = "aaa", B = "bbb" }

    writeln(EI.A);  // false, but A on 2.058
    writeln(EI.B);  // true, but B on 2.058

    writeln(ED.A);  // A
    writeln(ED.B);  // B

    writeln(EC.A);  // false
    writeln(EC.B);  // true

    writeln(ES.A);  // aaa
    writeln(ES.B);  // bbb
}

Pull request:
https://github.com/D-Programming-Language/phobos/pull/531

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to