Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[spec] "arithmetic type", not defined in https://dlang.org/spec/traits.html #4078

Open
dlangBugzillaToGithub opened this issue Jan 16, 2018 · 0 comments

Comments

@dlangBugzillaToGithub
Copy link

hsteoh reported this on 2018-01-16T22:28:56Z

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

Description

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant