CTFE Status

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Sun Nov 13 21:27:15 PST 2016


Assignment to Array.length works now :)
the following code :

uint[] makeArr()
{
     uint[] arr;
     arr.length = 5;
     return arr;
}


pragma(msg, makeArr());

results in :

CTFE_DEBUG_MESSAGE : building Array of Length 5
[0u, 0u, 0u, 0u, 0u]





More information about the Digitalmars-d mailing list