convert static arrays to dynamic arrays and return, have wrong data.

via Digitalmars-d digitalmars-d at puremagic.com
Mon Nov 10 03:59:57 PST 2014


On Monday, 10 November 2014 at 08:29:40 UTC, Don wrote:
> stack-allocked array (otherwise stack allocated arrays are 
> useless). Eg you should be able to pass a slice of a stack 
> array to writefln().
>
> Detecting if the slice is returned, requires flow analysis. 
> Currently the front-end doesn't do any flow analysis at all, 
> except for a couple of special cases like closures and super() 
> calls.

Ceterum censeo ...
http://wiki.dlang.org/User:Schuetzm/scope


More information about the Digitalmars-d mailing list