I just came across a C++ SDK that makes heavy use of this really weird *new pattern. I dont understand why they do it like that at all.
What's the point of constructing objects with *new, e.g. Widget wag = *new Widget();?
Update: Interesting, they are actually doing XPtr<T> p = *new T; - must be the semantics of some smart pointer magic. Still doesn't make much sense. I do trust the SDK is high quality.