[Issue 12417] `toStringz` is fundamentally broken
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Mar 21 13:09:46 PDT 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12417
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla at digitalmars.com
--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> 2014-03-21 13:09:41 PDT ---
As in ALL calls to C functions, you simply must be cognizant of the lifetime of
any pointed to data passed to them. This is as true in D code passing stuff to
C as in C code passing stuff to C.
I.e. you must read the C API documentation about what happens to those passed
in pointer to data. You must know what you're doing when calling C code.
There's no one answer to this, and therefore no package we can devise to
address this.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list