[Vala] List with composed type
- From: Johan <johan wolke7 net>
- To: vala-list gnome org
- Subject: [Vala] List with composed type
- Date: Sun, 25 Oct 2009 22:30:23 +0100
Hi,
I want to construct a List (can be any kind of linked list) where each
element is a struct (or it could be an object):
struct StructType{
string s1;
string s2;
string s3;
}
var list = new List<StructType> ();
output from valac:
'StructType' is not a supported generic type argument, use `?' to box
value types
Seems that List does only accept simple types. Is there any simple way
to implement it without rewriting the whole code of a linked list?
thanks for any help!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]