www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Working on mir_rcarray and mir_shared_ptr: two wrong-code issues.

Hi folks,

Both types use atomic reference counters, both types have C++ 
headers (mir-algorithm package). They are aimed to develop a 
user-friendly  nogc code and integrate tons of C++ code into D 
code using a step-by-step approach.

Sounds great, but wrong-code issues adds some problems.

1. https://issues.dlang.org/show_bug.cgi?id=19774
2. https://issues.dlang.org/show_bug.cgi?id=19793

For the first issues please use a reduced example by ag0aep6g. 
The original example is more complex and likely combines both of 
them.

Both issues can affect on generic Phobos parts and user-defined 
libraries as well. I would say any serious infrastructure with 
manual memory management is likely affected.

Best,
Ilya
Apr 08