In this case no, but; //---- int[1] foo(); int[] a = foo(); //----*is* slicing an rvalue, and it *does* compile. I don't think there needs to be escape analysis to catch this.
Oh yeah, that's bad. -Steve
Steven Schveighoffer via Digitalmars-d-learn Tue, 22 Apr 2014 11:50:48 -0700
In this case no, but; //---- int[1] foo(); int[] a = foo(); //----*is* slicing an rvalue, and it *does* compile. I don't think there needs to be escape analysis to catch this.
Oh yeah, that's bad. -Steve