What is the Correct way to Malloc in @nogc section?
Kitt via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Feb 12 15:51:19 PST 2015
I realized the above "_new" has an issue with emplace depending
on whether it's a class (reference type) or not. Class c =
emplace() works, but something like string s = emplace() does
not. Is doing string s = *emplace() safe and okay? Or is there a
better way to handle the differences between allocating a Class
with malloc vs a non-Class?
More information about the Digitalmars-d-learn
mailing list