Skip to content

String array in Vala #93

Discussion options

You must be logged in to vote

Classic, as soon as I ask this I work it out.

string[] foo = {};
foo += "hello world";

In case you're wondering how I messed up something so basic, it's because I was trying to use var and string[] in one line

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ChildishGiant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant