void func1(scope lazy string msg) @nogc {
}
void func2(scope lazy string msg) @nogc {
func1(msg);
}What? Why is msg GC allocating, especially since I scoped the lazy? Why is msg even evaluated?
Something seems off here. Thanks, Shachar
Shachar Shemesh via Digitalmars-d Sun, 10 Dec 2017 02:55:55 -0800
void func1(scope lazy string msg) @nogc {
}
void func2(scope lazy string msg) @nogc {
func1(msg);
}What? Why is msg GC allocating, especially since I scoped the lazy? Why is msg even evaluated?
Something seems off here. Thanks, Shachar