Sam Wilson píše v Út 19. 01. 2010 v 18:49 -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.                                 
>           
> _______________________________________________ Vala-list mailing list 
> [email protected] http://mail.gnome.org/mailman/listinfo/vala-list

You should probably start using a better mail client. The formatting of
your message is a total mess for me. :) Also, try using more descriptive
subjects. There is a lot of "Another Questions" here. You would do much
better with "Array property's length isn't what I expect it to be". ;)

Anyway, what you are experiencing is yet another known bug.
See https://bugzilla.gnome.org/show_bug.cgi?id=585847


Attachment: signature.asc
Description: Toto je digitálně podepsaná část zprávy

_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to