arturocepeda / Cflat

Embeddable lightweight scripting language with C++ syntax
55 stars 8 forks source link

Array initialization for char*[] doesn't work #18

Closed mundusnine closed 7 months ago

mundusnine commented 7 months ago

I tried using:

char* strArray[] = {
    "Hello",
    "Cruel",
    "World",
};

but it seems, from looking at the implementation, that only number based array initialization is supported.

arturocepeda commented 7 months ago

I have just added support for arrays of pointers.

mundusnine commented 7 months ago

Yup great, that fixed it for the initialization. Thanks for the fix.