[Vala] valac bug: missing array size
- From: Nor Jaidi Tuah <norjaidi tuah ubd edu bn>
- To: vala-list gnome org
- Subject: [Vala] valac bug: missing array size
- Date: Thu, 09 Sep 2010 12:15:02 +0800
Compiling the following (valac -c g.vala):
namespace Nsa {
public class ClassB {
public int[] x = {};
public void add() {
x += 1;
}
}
}
produces the following error
g.vala.c:71: error: ‘NsaClassB’ has no member named ‘_x_size_’
Removing 'public' from 'ClassB' or from 'x'
"fixes" the error, but renders ClassB unusable
for a library because non-public names will not
be listed in the generated vapi.
Is this a known bug? Is there a workaround other
than what I stated above?
hand
Nor Jaidi Tuah
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]