-
Notifications
You must be signed in to change notification settings - Fork 185
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
Add usize
and isize
as a primitive type
#995
Comments
Hey, could I work on this? @Y-Nak |
Yes, of course! |
Sweet! So this task includes mentoring from you? :) if you have any guidance on how to start with the parser, please share, otherwise I am diving into the codebase for now! |
yep!
Sorry, I made the wrong description for the issue; you don't need to modify the parser. So, the first step for this issue would be to make the name resolution handle the two types properly. The concrete steps would be
|
For the type checker module, the steps would be
In addition to that, you probably need to modify some auxiliary methods like Basically, that'd be all necessary things(I might miss something, though). |
Oh, currently, the head of |
resolved in #1012 |
We don't have
usize
andisize
to represent target-dependent pointer-size, which are useful, especially forusize
is primarily used for indexing into collections and working with memory sizes.isize
andusize
provide a means to write code that is portable across systems.This issue can be split up into several phases.
The text was updated successfully, but these errors were encountered: