[Vala] Hi All. Question about Generics?
- From: Gerald Edward Butler <gerald edward butler gmail com>
- To: vala-list gnome org
- Subject: [Vala] Hi All. Question about Generics?
- Date: Wed, 10 Feb 2010 23:44:34 -0500
Hello All,
New to Vala. Looks interesting. Is there any documentation or discussion
(mailing list logs, etc) that detail the how generics are implemented in
Vala? In particular, how do you handle the issue of multiple template
instantiation that many early C++ compilers had?
That is, if I create a template/generic class such as:
public class MyFoo : Foo<T> {
...
}
And I instantiate an instance of it:
var my_foo_tv = new MyFoo( Television );
And I do the same instantiation later in another module?
Is the generics implementation entirely run-time based? Or, does it
compile a class specific for the type much like C++? If like C++, how
does it handle definition of the same template instance in multiple
modules? How does it resolve the linkage across compiled modules?
Thanks in advance,
Gerald E Butler
gerald edward butler gmail com
http://goldmark.org/jeff/stupid-disclaimers/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]