digitalmars.D - Re: A const idiom + a different 'delete'
- Kagamin <spam here.lot> Aug 11 2010
bearophile Wrote:void main() { int[int] aa_; foreach (i; 0 .. 10) aa_[i] = i * i; // now I'd like to freeze aa const(int[int]) aa = aa_; }
void f() { { int[int] aa; //fill g(aa); } void g(ref const int[int] bb) { //do stuff } }
Aug 11 2010