From a761171009521587a8136fb51e2383757143a29a Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Mon, 29 Feb 2016 11:56:17 +0000 Subject: [PATCH] Eo: Add an interface for other interfaces to inherit from. --- src/Makefile_Eo.am | 3 ++- src/lib/eo/eo_interface.eo | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 src/lib/eo/eo_interface.eo diff --git a/src/Makefile_Eo.am b/src/Makefile_Eo.am index 51924feeff..e388318e8d 100644 --- a/src/Makefile_Eo.am +++ b/src/Makefile_Eo.am @@ -3,7 +3,8 @@ eo_eolian_files = \ lib/eo/eo_base.eo \ - lib/eo/eo_abstract_class.eo + lib/eo/eo_abstract_class.eo \ + lib/eo/eo_interface.eo eo_eolian_c = $(eo_eolian_files:%.eo=%.eo.c) eo_eolian_h = $(eo_eolian_files:%.eo=%.eo.h) diff --git a/src/lib/eo/eo_interface.eo b/src/lib/eo/eo_interface.eo new file mode 100644 index 0000000000..e2a3e9cf58 --- /dev/null +++ b/src/lib/eo/eo_interface.eo @@ -0,0 +1,7 @@ +interface Eo.Interface () +{ + [[An interface for other interfaces to inherit from. + This is useful when you want to create interfaces and mixins that expose + functions from a normal class, like for example @Eo.Base.constructor.]] +} +