Inability to dup/~ for const arrays of class objects

Dicebot m.strashun at gmail.com
Thu May 30 01:15:59 PDT 2013


On Thursday, 30 May 2013 at 08:11:08 UTC, Diggory wrote:
> But it's clearly not the case that all slices are dynamic 
> arrays... A dynamic array is already a well-established term to 
> mean an array allocated on the heap. Slices can point to arrays 
> on the stack.

Where did you get that definition? Dynamic arrays can change 
size. Static can't. It does not matter where memory is actually 
allocated. C array allocated on heap is still static array.


More information about the Digitalmars-d mailing list