Edwin Yip
-
Content Count
430 -
Joined
-
Last visited
-
Days Won
3
Posts posted by Edwin Yip
-
-
On 10/26/2018 at 9:17 PM, Memnarch said:Would love to see that. While I'm not an expert to C++, working with it in the UnrealEngine makes it so much simpler to identify ownership just by looking at the declaration of a parameter for example.
Which means: If an argument is not a Shared-Pointer, you can't store the value anywhere and only use it during runtime of the method. If it is a Shared-Pointer, you can keep that if needed. The Story of "Who owns it?" suddenly becomes very short 🙂
An exception here are UnrealProperties but that is blackmagic beyond the scope of what i wanted to say here 😉
@Memnarch, that's very interesting, would you point me to some example code? I don't know much about c++, thanks!
Detailed logging (for debugging)
in General Help
Posted · Edited by edwinyzh
Two options off my head: