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

Support suffixes for literals #749

nddrylliog opened this issue Dec 6, 2013 · 1 comment


Copy link

commented Dec 6, 2013

See "The type of the literal" section in there:

@ghost ghost assigned nddrylliog Dec 6, 2013

nddrylliog added a commit to ooc-lang/nagaqueen that referenced this issue Dec 8, 2013
nddrylliog added a commit that referenced this issue Dec 8, 2013
Closes #749. Suffix-less fp literals are Double
Issue #749 is about supporting suffixes in int and float literals. To
align with C/C++, float literals are now of type 'Double' by default,
and you need the suffix 'f' to turn them into 'Float's. The 'l' suffix
turns them into 'LDouble's.

@nddrylliog nddrylliog closed this Dec 8, 2013


This comment has been minimized.

Copy link
Member Author

commented Dec 8, 2013

Note that this has a huge performance impact for rock, since now the 'Int', etc. types have to be resolved each individually. We could have a pool of types that are re-used, that would be hackish but work..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.