One case of array assignments

Timon Gehr timon.gehr at gmx.ch
Mon Mar 18 15:33:16 PDT 2013


On 03/18/2013 10:45 PM, monarch_dodra wrote:
> ...
>
> ubyte[4096] x = repeat( cast(ubyte)0 )[ 0 .. 4096 ].array();
>
> This can be used as-is inside normal code. Hwoever, array is not
> CTFE-able, so it can't work to define a struct T.init value.

Which is annoying and should be fixed.


More information about the Digitalmars-d mailing list