[Vala] how to initialize a static struct ?
- From: picca <picca synchrotron-soleil Fr>
- To: vala-list gnome org
- Subject: [Vala] how to initialize a static struct ?
- Date: Thu, 14 Aug 2008 17:24:47 +0200
Hello
I have a struct like this
public struct Lattice {
public Parameter a;
public Parameter b;
public Parameter c;
public Parameter alpha;
public Parameter beta;
public Parameter gamma;
}
the Parameter is also a struct with only a doubles.
So I try to create a default struct for the Lattice
public static Lattice default = {
{1.0}, {1.0}, {1.0}, {90.}, {90.}, {90.}
};
but vala complaine saying hkl-lattice.vala:1.49-1.49: error: syntax
error, expected identifier
public static Lattice default = {
^
how can I create a static Lattice and use it in other classes ?
Thanks
Frederic
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]