Hello, I've noticed a strange thing about the "owned" keyword. It works differently (and completely uselessly) on method parameters, then it does when assigning. I'm curious whether that's intentional.
It references the object in the call, and unreferences on the end of the method. I really don't see why anyone would want to do that, as weak parameter works exactly the same without the ref/unref overhead. Even if it was intentional, to ensure lifetime of the passed object, it would be IMHO better to reference it on the beginning of the method, not in the call (it could confuse C programmer using the class). Anyway, I don't think it's wise to make the behavior different in those two cases. _______________________________________________ Vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
