[Vala] Virtual methods in interfaces
- From: James Moschou <james moschou gmail com>
- To: vala-list <vala-list gnome org>
- Subject: [Vala] Virtual methods in interfaces
- Date: Tue, 25 Jan 2011 21:35:40 +1030
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]