Re: [Vala] problem appending structs to Lists



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]