[Vala] Another Question

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]