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

Move semantics? #43

Closed
BitPuffin opened this issue Nov 21, 2015 · 3 comments
Closed

Move semantics? #43

BitPuffin opened this issue Nov 21, 2015 · 3 comments

Comments

@BitPuffin
Copy link

I was just thinking about how it could be useful to have rvalue overloading and move semantics in this language so that unique_ptr from C++ could be implemented. I know that there's shared-ptr in this language but reference counting has some undesirable overhead at times :)

@tomhrr
Copy link
Owner

tomhrr commented Nov 22, 2015 via email

tomhrr added a commit that referenced this issue Mar 10, 2016
tomhrr added a commit that referenced this issue Mar 23, 2016
tomhrr added a commit that referenced this issue Mar 24, 2016
tomhrr added a commit that referenced this issue Mar 25, 2016
tomhrr added a commit that referenced this issue Mar 27, 2016
tomhrr added a commit that referenced this issue Mar 31, 2016
tomhrr added a commit that referenced this issue Mar 31, 2016
tomhrr added a commit that referenced this issue Apr 20, 2016
tomhrr added a commit that referenced this issue Apr 22, 2016
tomhrr added a commit that referenced this issue Apr 22, 2016
tomhrr added a commit that referenced this issue Apr 22, 2016
tomhrr added a commit that referenced this issue Apr 22, 2016
@tomhrr
Copy link
Owner

tomhrr commented Apr 22, 2016

Done, except that retvals have been left alone, since there's no compelling reason to change them. This work helped to tidy up the internals around copying quite a bit, too, so thanks for the suggestion.

@tomhrr tomhrr closed this as completed Apr 22, 2016
@BitPuffin
Copy link
Author

That's cool that you implemented it. I will probably give it a spin soon!

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

2 participants