[Vala] Another Question
- From: Sam Wilson <tecywiz121 hotmail com>
- To: <vala-list gnome org>
- Subject: [Vala] Another Question
- Date: Tue, 19 Jan 2010 18:49:59 -0500
Hello once again friendly mailing list!
I have another question, probably my own fault this time:
why does the following not produce what I expect it to?
[code]public int main(){ string[] test_array, test2; TestClass tc; ulong len1, len2;
test_array = new string[100]; test_array[0] = "hello world"; tc = new TestClass(test_array);
test2 = tc.rawr; len1 = tc.rawr.length; len2 = test2.length;
stdout.printf("instance.property.length:\t\t%lu\n", len1);
stdout.printf("string[].length:\t\t\t%lu\n", len2); return (int)(len1 != len2);}
public class TestClass{ string[] inside_rawr; public string[] rawr { get { return inside_rawr; } }
public TestClass(string[] r) { inside_rawr = r; }}[/code]
Thanks again!Sam
PS: I swear I'll stop asking questions soon.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]