Original Post L loboWu 51 loboWu Apr 11, 2014 at 9:34 AM Dear andreas: I decare a string array ex: string[] arr = { "11111" , "222222"}; But If I remove the comma string[] arr = { "11111" "222222"}; angelscript won't report parsing error. Instead, this statement is equal to string[] arr={"11111222222"}; Is it a bug?
WitchLord Mod 1,118 WitchLord Apr 11, 2014 at 1:11 PM No, it's not a bug. Just like in C++ the compiler will concatenate string literals that are only separated by white spaces. This is documented here: http://www.angelcode.com/angelscript/sdk/docs/manual/doc_datatypes_strings.html