Is is possible to mark methods as virtual in interfaces, as a
mechanism of providing default implementations?

If I do

interface Interface {
 public virtual void function () {
   // Default
 }
}

class Class : Object, Interface {
 public override void function () {
   // Custom
 }
}

The compiler says that no method to override was found.

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

Reply via email to