automem v0.3.5 - now with more vector (like std::vector, not Physics)!
ikod
geller.garry at gmail.com
Sun Sep 30 19:54:07 UTC 2018
On Thursday, 20 September 2018 at 14:57:42 UTC, Atila Neves wrote:
> If you've never heard of automem before, I wrote it to have
> C++-style smart pointers in D that I could use in @nogc code:
>
>
> http://code.dlang.org/packages/automem
>
>
Sorry for asking here.
Shouldn't this code work?
import automem;
struct X {
int i;
}
struct Y {
RefCounted!X x; // fails
//X x; // ok
}
void main()
{
Y y1;
Y y2;
y2 = y1;
}
https://run.dlang.io/is/k2qWhm
More information about the Digitalmars-d-announce
mailing list