Re: [Vala] Structure initialisation syntax
- From: Fabian Deutsch <fabian deutsch gmx de>
- To: Sébastien Wilmet <sebastien wilmet gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Structure initialisation syntax
- Date: Wed, 27 Apr 2011 01:19:31 +0200
Am Mittwoch, den 27.04.2011, 00:02 +0200 schrieb Sébastien Wilmet:
On Tue, Apr 26, 2011 at 10:46:00PM +0100, David Given wrote:
What's the syntax to initialise an instance of a structure on the stack?
See the tutorial:
https://live.gnome.org/Vala/Tutorial#Structs
Copy-n-pasting another way from the the tutorial to initialize a struct
type:
Color c3 = Color() {
red = 0.5,
green = 0.5,
blue = 1.0
};
Does this help?
- fabian
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]