Re: [Vala] public class Foo : List<Bar>



On 27/11/13 00:07, Luca Bruno wrote:
in general then, is this allowed in vala?

  public class Foo : SomeContainer<Bar> { }

It is. However glib containers are tricky. You better look at gee
containers if you can.
Also consider composition over inheritance.

yup, composition is preferred.

i was just curious about that syntax though,
as i couldn't find anything on it in the dox
(it was implied but not specified).

cheers

-billy


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