Adding RwLock inplace initialization#79
Adding RwLock inplace initialization#79darkestpigeon wants to merge 1 commit intonim-lang:masterfrom
Conversation
|
No, instead |
|
@Araq checked out |
|
Related: #75 |
|
Checked out the discussion in #75. Still don't understand how |
|
By the way, perhaps the compiler could be patched so that in constructions like or the special |
That is what I mean with |
I have a following toy example This doesn't compile ( @Araq what am I doing wrong here? |
We need to teach the compiler new tricks first. :-) |
Right now an object with an
RwLockfield can't be properly initialized (myobj.rwLock = createRwLock()fails due to a deleted move constructor). This PR addresses this by introducing an in-place initializer (init(myobj.rwLock)).