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

Status
NEW
Severity
normal
Priority
P3
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-01-16T22:28:56Z
Last change time
2024-12-15T15:24:40Z
Assigned to
No Owner
Creator
hsteoh
Moved to GitHub: dlang.org#4078 →

Comments

Comment #0 by hsteoh — 2018-01-16T22:28:56Z
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.
Comment #1 by robert.schadek — 2024-12-15T15:24:40Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dlang.org/issues/4078 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB