Enum arguments?

Max Samukha spambox at d-coding.com
Wed Mar 31 03:48:33 PDT 2010


On 31.03.2010 3:04, bearophile wrote:
>   as compile-time arguments both floating point values and strings of 8,16,32 bit chars, but I don't know why arrays are not allowed

Actually, they are allowed via an additional alias:

void main() {
     float[][] outmat = [[0.0]];
     enum float[][] mask = [[0.0]];
     convolve!mask([[1.0, 1.0]], outmat);
}



More information about the Digitalmars-d mailing list