Re: [Vala] public class Foo : List<Bar>
- From: banjo <banjo actrix com>
- To: vala-list gnome org
- Subject: Re: [Vala] public class Foo : List<Bar>
- Date: Wed, 27 Nov 2013 00:54:35 +1300
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]