Mutable array with fixed length

2014-09-04 Thread Freddy via Digitalmars-d-learn
How would you create a mutable array with a fixed(compile error when trying to change) length.

Re: Mutable array with fixed length

2014-09-04 Thread Jonathan M Davis via Digitalmars-d-learn
On Fri, 05 Sep 2014 00:26:07 + Freddy via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: How would you create a mutable array with a fixed(compile error when trying to change) length. Static arrays have a fixed length and live on the stack. int[12] arr; Dynamic arrays have