[Issue 18246] New: [spec] "arithmetic type", not defined in https://dlang.org/spec/traits.html

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 16 22:28:56 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=18246

          Issue ID: 18246
           Summary: [spec] "arithmetic type", not defined in
                    https://dlang.org/spec/traits.html
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dlang.org
          Assignee: nobody at puremagic.com
          Reporter: hsteoh at quickfur.ath.cx

On https://dlang.org/spec/traits.html, section 25.1, __traits(isArithmetic, T)
is defined as returning true if T is an arithmetic type.  However, what exactly
constitutes an arithmetic type is not stated.  Are pointers considered
arithmetic types, since D does have pointer *arithmetic*?

It would be best if the spec explicitly listed exactly which types are
considered "arithmetic types", or for that matter "unsigned types", etc.,
rather than leaving it up to interpretation.

--


More information about the Digitalmars-d-bugs mailing list