[Issue 13093] D ABI change for guaranteed efficient return of fixed size array
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Jul 11 02:39:01 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13093
--- Comment #2 from Kenji Hara <k.hara.pg at gmail.com> ---
You can test it by the code.
void* p;
ubyte[10000] foo() nothrow {
typeof(return) data;
p = &data;
return data;
}
void main() nothrow {
immutable data = foo();
assert(p == &data);
}
--
More information about the Digitalmars-d-bugs
mailing list