[Issue 7161] Passing string literal by ref changes its bounds forever

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 24 05:27:21 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=7161



--- Comment #3 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2011-12-24 05:27:20 PST ---
Actually s_impl isn't needed, s() can have that implementation it just needs a
set of empty parens:
ref string s()(string s) 
{
    static string ss;
    ss = s;
    return ss;    
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list