D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 18246 - [spec] "arithmetic type", not defined in https://dlang.org/spec/traits.html
Summary: [spec] "arithmetic type", not defined in https://dlang.org/spec/traits.html
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dlang.org (show other issues)
Version: D2
Hardware: All All
: P3 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-16 22:28 UTC by hsteoh
Modified: 2024-12-15 15:24 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description hsteoh 2018-01-16 22:28:56 UTC
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 dlangBugzillaToGithub 2024-12-15 15:24:40 UTC
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