[Vala] [Genie] multi-line structs
- From: Arc Riley <arcriley ubuntu com>
- To: vala-list <vala-list gnome org>
- Subject: [Vala] [Genie] multi-line structs
- Date: Mon, 4 Jan 2010 02:07:49 -0500
A syntax quirk that I found a bit obnoxious:
const entries : array of OptionEntry = { \
{ "config", 'c', OptionFlags.IN_MAIN, \
OptionArg.FILENAME, ref config, \
"Use alternative configuration", "FILE" }, \
{ "license", 'L', OptionFlags.IN_MAIN, \
OptionArg.NONE, ref license, \
"Print software license and exit", null }, \
{ "version", 'V', OptionFlags.IN_MAIN, \
OptionArg.NONE, ref version, \
"Print version information and exit", null }, \
{null} }
The \ shouldn't be needed inside {}, but valac reports an error of
unexpected indentation(etc) without it. Is there a way to do this without
escaping the line breaks or can we get this improved for the next valac
release?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]