returning D string from C++?

Jeremy DeHaan via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Aug 5 14:18:29 PDT 2017


On Saturday, 5 August 2017 at 20:17:23 UTC, bitwise wrote:
> I have a Windows native window class in C++, and I need a 
> function to return the window title.
>
> [...]

As long as you have a reachable reference to the GC memory 
SOMEWHERE, the GC won't reclaim it. It doesn't have to be on the 
stack as long as it is reachable through the stack.


More information about the Digitalmars-d-learn mailing list