On Tuesday, August 20, 2013 12:54:29 John Colvin wrote:
> is there an allocation in this?
> 
> enum vals=[1, 2, 3, 0];
> 
> int[4] a;
> a[] = vals[];

Since, you're asking it to copy the elements of a dynamic array to a static 
one, I would fully expect it to result in an allocation, though a smart 
compiler might optimize it out. I wouldn't expect dmd to do that though.

- Jonathan M Davis

Reply via email to