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

Function parameter names #4

Open
phisiart opened this issue Sep 3, 2015 · 0 comments
Open

Function parameter names #4

phisiart opened this issue Sep 3, 2015 · 0 comments
Assignees
Labels

Comments

@phisiart
Copy link
Owner

phisiart commented Sep 3, 2015

Currently parameter names of a function are recorded in the function type.

TFunction {
    return_type : Type
    arguments : (name : String, type : Type)[]
}

In a function definition, the names are used.

However, this doesn't accurately reflect the C semantics. The names of parameters don't relate to the type of the function. What if you first write a prototype and then a definition? The first doesn't need parameter names and the second does. Does the second function type overwrite the first?

@phisiart phisiart self-assigned this Jan 14, 2016
@phisiart phisiart added the bug label Jan 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant