On Friday, 27 November 2015 at 08:38:29 UTC, drug wrote:
I need to store a struct like a reference type. Now I use pointer for this, is it the best D way? This pointer is private and access to it is safe, but it's just unusual for me to see pointers in D code.

One thing: take care when comparing pointer to struct, it'll only compare the memory address and never call a custom opEquals for example... You have to explicitly compare the dereferenced stuff.

Reply via email to