Can passing an address of this to a non-copyable object be made trusted? - i.e. can I disable moving?
aliak
something at something.com
Mon Aug 27 20:02:09 UTC 2018
On Monday, 27 August 2018 at 00:15:18 UTC, Jonathan M Davis wrote:
> On Sunday, August 26, 2018 5:10:29 PM MDT Nicholas Wilson via
>> So, soon™?
Bah humbug. Was afraid of this :p
>
> Yeah. Hopefully, we're able to disable moving at some point in
> the near future. However, right now, it's definitely not
> possible. So, if you have a type where it won't work properly
> if it's ever moved, then either you need to rethink what you're
> doing, or you must be _very_ careful with how you use any
> object of that type so that you don't ever use it in a way that
> even might result in it being moved.
>
> - Jonathan M Davis
I guess I'll just stay @system for now then. Maybe I'll be able
to figure something out some time.
More information about the Digitalmars-d-learn
mailing list