Re: [Vala] subclassing a template class
- From: Yu Feng <rainwoodman gmail com>
- To: vala-list <vala-list gnome org>
- Subject: Re: [Vala] subclassing a template class
- Date: Sat, 10 Jan 2009 19:32:23 -0500
I made a patch to accept the following syntax:
class Container<T> {
...
}
class Stuff: Container<Widget> {
Stuff() {
base<Widget>();
}
}
Bug #567319
Regards,
Yu
On Sat, 2009-01-10 at 17:29 -0500, Yu Feng wrote:
Hi,
How do I subclass a template class? I tried the following code but it
doesn't correctly pass the t_dup_func and t_destroy_fucn into the parent
class.
class Container<T> {
....
}
class SCon: Container<Object> {
....
}
Regards,
Yu
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]