http://d.puremagic.com/issues/show_bug.cgi?id=7161
Andrej Mitrovic <andrej.mitrov...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrej.mitrov...@gmail.com --- Comment #2 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 2011-12-24 05:21:38 PST --- I'll do you one better: void g1() { f("abc".s); } void g2() { f("abc".s); } ref string s_impl()(string s) { static string ss; ss = s; return ss; } ref string s(string s) { return s_impl!()(s); } void main() { g1(); g2(); f("abc".s); f("abc".s); f("abc".s); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------