>   42         public bool toggle() {
>   43                 this = !this;
>   44                 return this;
>   45         }
>   46 }

'this = anything' should be flagged as an error.
'this' should be a constant reference. 

Think from the point of view of, say, 'true'.
'true' is saying to itself:
   self = false
If that works, 'true' is no longer itself!

hand
Nor Jaidi Tuah


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

Reply via email to