arturocepeda / Cflat

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

Assigning const char* to auto variable makes Cflat error out because of invalid assignement #13

Closed mundusnine closed 6 months ago

mundusnine commented 6 months ago
//In Script file
auto test = "Test";

You can see the behavior here in this video

master commit version used: e12b1a0410e28ce67acca109f8c9e203a690a52d

arturocepeda commented 6 months ago

Thanks for reporting the issue, @mundusnine!

'auto' has not been used very much for scripting in the projects I have been involved in, and it surely needs some love. I'll look into it!

arturocepeda commented 6 months ago

Update: please pull and try again, 'auto' should now work with string literals.

mundusnine commented 6 months ago

Fixed with latest commit