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

implement standalone explicit routine instantiations #348

Merged
merged 3 commits into from
Jan 10, 2025

Conversation

metagn
Copy link
Collaborator

@metagn metagn commented Jan 10, 2025

closes #269 for now

The difference with original Nim is that for matching symchoices or templates etc, the compiler doesn't try to instantiate them, instead leaving the expression as (at (symchoice ...) ...), only instantiating unambiguous concrete generic procs. This complicates any potential proc type disambiguation logic for overloaded explicit routine instantiations but this seems to not be a priority for now (though I remember something in system using it). Not hard to bring back the old behavior either way.

@Araq Araq merged commit d2f9b48 into nim-lang:master Jan 10, 2025
3 checks passed
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

Successfully merging this pull request may close these issues.

builtin subscripts & required magics for indexing
2 participants