[Issue 11560] API returning immutable string on stack?
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Nov 19 23:30:28 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11560
--- Comment #2 from Manu <turkeyman at gmail.com> 2013-11-19 23:30:17 PST ---
(In reply to comment #1)
> A compilable test case that shows the problem would be helpful.
string func()
{
string hash = std.digest.digest.toHexString(std.digest.sha.sha1Of("text"));
return hash;
}
void main()
{
string s = func();
std.stdio.writeln("hello world"); // call a funtion
std.stdio.writeln(s); // s is rubbish
}
--
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