toStringz note about keeping references

Andrej Mitrovic andrej.mitrovich at gmail.com
Sun Oct 14 17:04:44 PDT 2012


On 10/15/12, Jonathan M Davis <jmdavisProg at gmx.com> wrote:
> snip

Hmm ok, this sheds some light on things.

If a C function takes a const pointer and has no documentation about
ownership then maybe it's a good guess to say it won't store that
pointer anywhere and will only use it as a temporary?


More information about the Digitalmars-d-learn mailing list