Re: [Vala] Foreach on interfaces



Hi Matt,

On Fri, 2008-11-21 at 09:48 +0000, Spencer, Matthew wrote:
But I get errors:
  error: missing class prerequisite for interface 'InterfaceA'
on the lines marked with 1 and 2.

Interfaces need to have a class as prerequisite to be usable as a
variable - we miss memory management information otherwise.

public interface InterfaceA : Object {
   public abstract void function();
}

Jürg




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]