Re: [Vala] problem appending structs to Lists
- From: Jürg Billeter <j bitron ch>
- To: Cliff Brake <cliff brake gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] problem appending structs to Lists
- Date: Wed, 10 Sep 2008 18:19:14 +0200
On Thu, 2008-09-04 at 11:20 -0400, Cliff Brake wrote:
from the below code, I assume its not valid to use structs in lists?
That's right, GList does not directly support arbitrary struct elements.
However, it's possible to put nullable/boxed structs in a GList.
To do this, you need to declare the list as GLib.List<MyStruct?>, the
question mark stands for the nullable/boxed structs. Please note that
nullable/boxed struct support is still experimental, but we'd like to
fully support it.
Jürg
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]