[Issue 3446] New: Rename float.min to float.min_normal

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 28 03:18:16 PDT 2009


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: nobody at puremagic.com
        ReportedBy: clugdbug at yahoo.com.au


--- Comment #0 from Don <clugdbug at 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: -------


More information about the Digitalmars-d-bugs mailing list