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

fix #8485 ; make default public instead of redefined everywhere; use better implementation #8490

Closed
wants to merge 1 commit into from

Conversation

timotheecour
Copy link
Member

@timotheecour timotheecour commented Jul 31, 2018

  • fixes #8485

lib/system.nim Outdated
# needed pending https://github.com/nim-lang/Nim/issues/8486
proc defaultImpl[T]():T=
var a: T
return a
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

result variable instead?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@timotheecour timotheecour force-pushed the pr_default branch 2 times, most recently from 234aecc to cae1f84 Compare August 1, 2018 19:25
@timotheecour
Copy link
Member Author

@Araq PTAL tests green

@Araq
Copy link
Member

Araq commented Aug 2, 2018

Yeah but I don't like this workaround sorry, let's wait for #8486 to be fixed please.

@Araq
Copy link
Member

Araq commented Feb 23, 2019

This needs to be a language builtin.

@Araq Araq closed this Feb 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants