On 20 June 2011 22:26, Serge Hulne <[email protected]> wrote: > /// > using Posix; > > void main (string[] argv) { > > string a = "hello"; > string b = a; > Posix.stdout.printf("a = %p\n", &a); > Posix.stdout.printf("b = %p\n", &b);
This is printing the address where the pointers are, that's why you are getting 2 different stack addresses. Remove the '&' here and it will actually print their values. > } > /// Rui _______________________________________________ vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
