static array internal & dangling reference

Mike Parker via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Nov 12 05:12:27 PST 2016


On Saturday, 12 November 2016 at 13:11:02 UTC, Mike Parker wrote:

> void func2(int[] foo) { foo ~= 10; }

Sorry, this should be (ref int[] foo)


More information about the Digitalmars-d-learn mailing list