using Gdk and X11 packages results in a compilation error:
x11.vapi:295.2-295.32: error: The base type `Gdk.Drawable` of struct
`X.Window` is not a struct
public struct Window : Drawable {
x11.vapi:284.27-284.28: error: The type name `ID' could not be found
public struct Drawable : ID
Hello again!
random question, how are you supposed to unbox a value type (say float) ?
Here is how I am trying to do it, but it won't compile:
[code]
public void main(string[] args)
{
float? a = 6;
printfloat((float)a);
}
public void printfloat(float t)
{
stdout.printf(%f\n, t);
Sam Wilson píše v Út 19. 01. 2010 v 10:46 -0500:
Hello!
My name is Sam Wilson, though I usually go by tecywiz121 online. First I'd
just like to say hi to everyone who works or is interested in vala, and
thanks for making a very cool new programming language!
Some random background about
Sam Wilson píše v Út 19. 01. 2010 v 11:02 -0500:
Hello again!
random question, how are you supposed to unbox a value type (say float) ?
Here is how I am trying to do it, but it won't compile:
[code]
public void main(string[] args)
{
float? a = 6;
printfloat((float)a);
}
Hello once again friendly mailing list!
I have another question, probably my own fault this time:
why does the following not produce what I expect it to?
[code]public int main(){string[] test_array, test2; TestClass tc;
ulong len1, len2; test_array = new string[100];
Sam Wilson píše v Út 19. 01. 2010 v 18:49 -0500:
Hello once again friendly mailing list!
I have another question, probably my own fault this time:
why does the following not produce what I expect it to?
[code]public int main(){ string[] test_array, test2; TestClass tc;
ulong len1,
Given this:
for (int i=0; i 10; i++) {
button[i].clicked.connect ((s) = {stdout.printf (%d\n, i);});
}
all the buttons, when clicked, outputs 10.
i.e., the variable i is treated as non-local and shared
by all those closures.
Is this the correct semantic?
If this is up for debate I would