-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Compiler manual is not that clear about int literal #7304
Comments
@StefanSalewski I have looked at the forum, and I am interested in improving the manual. Do you mind clarifying what is wrong with the first statement? As I think I understand, it could read (as an example): |
twetzel, sorry english is not my native language, so I have some problems to give a good suggestion. Your suggestions is wrong, because integer literals are of type int or int64, but never something like int16. Maybe we could write: "Literals without a type suffix are of AN INTEGER type, unless the literal contains a dot or E|e in which case it is of type float." "This INTEGER type is type int if the literal is in the range low(int32)..high(int32) otherwise the literal's type is int64." |
Off the top of my head, that sounds correct :) |
I'll consider making a pull request once I write the changes, possibly tomorrow or sometime in the next few days :) |
I'm going to work on this now. |
As forum user lscrd reported, this text is not fully correct about int literals:
At a different position this correct explanation exists:
The text was updated successfully, but these errors were encountered: