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

Duplicate function argument names #151

Open
vsubhuman opened this issue Sep 9, 2018 · 0 comments
Open

Duplicate function argument names #151

vsubhuman opened this issue Sep 9, 2018 · 0 comments

Comments

@vsubhuman
Copy link
Contributor

For now, this is a valid IELE code:

define @func(%a, %a) {
  ret %a
}

Compiles and executes without a question. Returns the last argument value, of course, because of how cells work. And I couldn't find any mention of argument names to be required to be unique in the semantics.

Just wanted to clarify for history if this is by design, and if it serves some purpose?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant