[Vala] split strings error

2008-10-15 Thread Ildar Mulyukov
Hi! As I see a few small problems discussed, here is another: % cat > 1.c static char* str = "aaa" "bbb" "ccc"; % cc -c 1.c OK % cp 1.c. 1.vala % valac -C 1.vala 1.vala:2.1-2.5: error: syntax error, expected `;' "bbb" ^ Compilation failed: 1 error(s), 0 warning(s) I know verbatim

Re: [Vala] Vala Bug

2008-10-15 Thread Hans Vercammen
On Wed, 2008-10-15 at 23:05 +0400, Кутейников Дмитрий wrote: > I have defined function with name register and Vala translated it to C > as is. > So gcc shows errors because "register" is reserved keyword in C. Vala currently doesn't check possible conflicts in the C namespace but it's definitely

Re: [Vala] class definitions

2008-10-15 Thread Hans Vercammen
Hi, On Wed, 2008-10-15 at 22:05 +0400, Кутейников Дмитрий wrote: > I wrote this: > > class Item > { > public uint8 x, y, zlevel; > public string location; > } > > > and got an error: > > objects.vala:18.19-18.19: error: syntax error, expected de

[Vala] Vala Bug

2008-10-15 Thread Кутейников Дмитрий
I have defined function with name *register *and Vala translated it to C as is. So *gcc* shows errors because "register" is reserved keyword in C. ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

[Vala] class definitions

2008-10-15 Thread Кутейников Дмитрий
I wrote this: *class Item { public uint8 x, y, zlevel; public string location; }* and got an error: *objects.vala:18.19-18.19: error: syntax error, expected declaration public uint8 x, y, zlevel; *This code is cor

Re: [Vala] gobject-introspection and gtkmmproc (Re: Auto mm(C++) binding for libraries written in Vala?)

2008-10-15 Thread Murray Cumming
On Tue, 2008-10-14 at 14:31 -0400, Yu Feng wrote: > Hi, > > there is a link at http://live.gnome.org/GObjectIntrospection/ > saying that gtkmm 'can' use gobject-introspection. > > Is anyone working on this No. > / when will it likely to be done? Not soon unless someone decides that they would

Re: [Vala] Delegation in vala

2008-10-15 Thread Matt Emson
Кутейников Дмитрий wrote: A thought on syntax: ** * class A : Object { public void foo() { stdout.printf("Object A doing the job."); } };* *class B : Object { * * public A a; public void foo() { a.foo(); } }; Delphi does

[Vala] Delegation in vala

2008-10-15 Thread Кутейников Дмитрий
Can you add one really necessary feature to Vala: delegation? It would be great if I could write something like this: * class A : Object { public void foo() { stdout.printf("Object A doing the job."); } };* *class B : Object { * *public delegati