Re: [Vala] [ANNOUNCE] Vala 0.9.3 - Compiler for the GObject type system

2010-07-14 Thread Luca Bruno
On Wed, Jul 14, 2010 at 10:06:11PM -0500, Sandino Flores Moreno wrote: > Congrats! > > But... what is a main block? A sort of implicit main(), for scripts you can do something like: print("test"); And then run the program by vala yourprogram.vala. -- http://www.debian.org - The Universal Oper

Re: [Vala] [ANNOUNCE] Vala 0.9.3 - Compiler for the GObject type system

2010-07-14 Thread Sandino Flores Moreno
Congrats! But... what is a main block? On Wed, Jul 14, 2010 at 2:14 PM, Jürg Billeter wrote: > We are pleased to announce version 0.9.3 of Vala, a compiler for the > GObject type system. > > Vala 0.9.3 is now available for download at: >   http://download.gnome.org/sources/vala/0.9/ > > Changes

Re: [Vala] Convert from byte to character offset in string

2010-07-14 Thread James Moschou
OK, I guess I was just hoping I wouldn't have to use pointers. Cheers > I noticed what you're describing here is similar to a project I had been > working on. Are you by any chance working on a word processor in Vala? I am working on a text editor widget in Clutter in vala. /James __

Re: [Vala] enum values and scopes

2010-07-14 Thread andi
On Wed, 2010-07-14 at 23:11 +0100, Bob Hazard wrote: > Are you using var? var isn't determined until compile time so it > can't work with autocomplete. If you are explicit when you declare a > variable then it becomes much more useful. I use var now and then and also used it in my example but I

[Vala] how to declare multi-dimensional arrays in Genie?

2010-07-14 Thread Ron Murawski
How to declare a global, uninitialized multi-dimensional array in Genie? I'm using Vala 0.9.2 The following code does not work: myarray : uint64[13,64] error: syntax error, expected ']' but got ',' with previous integer literal myarray : new uint64[13,64] error: syntax error, expected ']' but

Re: [Vala] enum values and scopes

2010-07-14 Thread Bob Hazard
Are you using var? var isn't determined until compile time so it can't work with autocomplete. If you are explicit when you declare a variable then it becomes much more useful. ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman

Re: [Vala] enum values and scopes

2010-07-14 Thread andi
On Tue, 2010-07-13 at 21:38 +0100, Bob Hazard wrote: > Personally I find that context improves readability. I know the > google c++ style-guide forbids the "using" keyword but I guess that is > for big projects with many authors. > > Try a plugin that offers autocomplete to help the memory such a

Re: [Vala] [ANNOUNCE] Vala 0.9.3 - Compiler for the GObject type system

2010-07-14 Thread Bob Hazard
Woo hoo nearly 1.0! Make sure you leave enough room. Enlightenment 17 is at version 0.16.999.49898 and I believe the kernel started using letters :) ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

[Vala] Vala collaborative documentation

2010-07-14 Thread Luca Bruno
Hello, I'd like to point you to the new collaborative Vala Reference Manual at http://live.gnome.org/Vala/Manual imported from http://www.vala-project.org/doc/vala-draft/, and also the Hackers' Guide to Vala at http://live.gnome.org/Vala/Hacking imported from http://rodney.id.au/dev/vala/hackers.ht

[Vala] [ANNOUNCE] Vala 0.9.3 - Compiler for the GObject type system

2010-07-14 Thread Jürg Billeter
We are pleased to announce version 0.9.3 of Vala, a compiler for the GObject type system. Vala 0.9.3 is now available for download at: http://download.gnome.org/sources/vala/0.9/ Changes since 0.9.2 * Support newlines in double quoted string literals. * Add experimental support for main bloc

Re: [Vala] Convert from byte to character offset in string

2010-07-14 Thread Luca Bruno
On Wed, Jul 14, 2010 at 08:45:54PM +0930, James Moschou wrote: > I'm sorry I don't see how this is what I want. My problem is that I am > implementing a text view with a cursor that works in characters. > However I use Pango to figure out where to draw the cursor, and Pango > works in bytes, so I n

Re: [Vala] Convert from byte to character offset in string

2010-07-14 Thread Abderrahim Kitouni
Hi, في ر، 14-07-2010 عند 20:45 +0930 ، كتب James Moschou: > On 14 July 2010 16:40, Luca Bruno wrote: > > On Wed, Jul 14, 2010 at 12:00:58PM +0930, James Moschou wrote: > >> Hello, > >> > >> Is there a convenient way to convert from a byte index in a string to > >> its character

Re: [Vala] [ANNOUNCEMENT] Chipmunk Bindings

2010-07-14 Thread Jiří Zárevúcky
tecywiz121 píše v Út 13. 07. 2010 v 22:35 -0400: > On Wed, 2010-07-14 at 03:31 +0200, Jiří Zárevúcky wrote: > > tecywiz121 píše v Út 13. 07. 2010 v 20:32 -0400: > > > Hello vala people, > > > > > > I am rather proud to announce my first slightly useful project: Chipmunk > > > Bindings! [0] > > >

Re: [Vala] Convert from byte to character offset in string

2010-07-14 Thread James Moschou
On 14 July 2010 16:40, Luca Bruno wrote: > On Wed, Jul 14, 2010 at 12:00:58PM +0930, James Moschou wrote: >> Hello, >> >> Is there a convenient way to convert from a byte index in a string to >> its character offset and vice-versa? >> >> I know string has pointer_to_offset(string pos), but that's

Re: [Vala] Convert from byte to character offset in string

2010-07-14 Thread Luca Bruno
On Wed, Jul 14, 2010 at 12:00:58PM +0930, James Moschou wrote: > Hello, > > Is there a convenient way to convert from a byte index in a string to > its character offset and vice-versa? > > I know string has pointer_to_offset(string pos), but that's for > pointers, I have the value of a byte index