-
-
Notifications
You must be signed in to change notification settings - Fork 613
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
Can reframe __rvalue
as an intrinsic function?
#20569
Comments
Since |
I agree it not be called move because it will break code. But it should be a function that can The most important thing is that we can alias |
Note that I don't think I.e., I think |
@tgehr yes, we've talked about this, and I agree. I think that thing has to be en elaborate intrinsic though, and at least in the meantime we need a primitive one. I specifically suggest using alias that way because it allows flexibility to easily replace the implementation with whatever is most appropriate as it becomes available. |
Is it possible to implement the logic for
__rvalue
as a function call node rather than a base expression? This can allow more flexibility, gain access to UFCS, and alsoalias
, etc.Then when druntime is ready to integrate move semantics, it can do:
alias move = __rvalue;
in place of the old bespoke function.The text was updated successfully, but these errors were encountered: