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

           Summary: Rename float.min to float.min_normal
           Product: D
           Version: 2.035
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: patch
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: clugd...@yahoo.com.au


--- Comment #0 from Don <clugd...@yahoo.com.au> 2009-10-28 03:18:15 PDT ---
Discussion:
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=99283

Patch: About as simple as you can possibly imagine.

idgen.c, line 116
    { "infinity" },
    { "dig" },
    { "epsilon" },
+    { "min_normal" },
    { "mant_dig" },
    { "max_10_exp" },

mtype.c, line 1989:
    else if (ident == Id::min)
    {
    switch (ty)
    {
        case Tint8:        ivalue = -128;        goto Livalue;
        case Tuns8:        ivalue = 0;        goto Livalue;
        case Tint16:    ivalue = -32768;    goto Livalue;
        case Tuns16:    ivalue = 0;        goto Livalue;
        case Tint32:    ivalue = -2147483647L - 1;    goto Livalue;
        case Tuns32:    ivalue = 0;            goto Livalue;
        case Tint64:    ivalue = (-9223372036854775807LL-1LL);    goto Livalue;
        case Tuns64:    ivalue = 0;        goto Livalue;
        case Tbool:        ivalue = 0;        goto Livalue;
        case Tchar:        ivalue = 0;        goto Livalue;
        case Twchar:    ivalue = 0;        goto Livalue;
        case Tdchar:    ivalue = 0;        goto Livalue;
+    }
+    }
+    else if (ident == Id::min_normal)
+    {
+    switch (ty)
+    {
        case Tcomplex32:

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

Reply via email to