[Vala] Convert glibmm's Glib::ustring to Vala's string

2012-08-31 Thread Trung Ngo
Hi, I'm trying to interface my vala code with a C++ library that makes use of Glib::ustring for UTF-8 support. Is there any way to convert glibmm's Glib::ustring to Vala's string? ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailm

Re: [Vala] Introduction and Syntax Error When Compiling GTK Example

2012-08-31 Thread Thomas Jollans
On 08/31/2012 10:50 AM, Landon Blake wrote: > This is my first post to the Vala mailing list, so let me make a brief > introduction. I've just started learning Vala. I've been a Java > programmer and a Linux for several years. > > I'm getting an error when I try to execute the first GTK programmin

Re: [Vala] Using Libraries

2012-08-31 Thread Landon Blake
Thank you both for your responses. The installation and use of libraries in Vala makes a lot more sense now. I'll take a crack at installing and using Gee later this weekend. I might have a follow-up question or two at that time. I look forward to creating Vala libraries others can use under an op

Re: [Vala] Using Libraries

2012-08-31 Thread tarnyko
Hi Landon, I'm having a little trouble figuring out how to use libraries in a Vala program. I understand how to import a namespace and how to include the library in my command to the compiler. But how do I install a library in the proper location so I don't get a compiler warning about a missing

Re: [Vala] Array as generic type not allowed? Can't ArrayList

2012-08-31 Thread Luca Bruno
On Fri, Aug 31, 2012 at 1:13 PM, Just Fill Bugs wrote: > But array was represented as pointer, hence fit into a pointer. Isn't the > requirement for generic type is fitting into a pointer size? > In vala it's the couple pointer+length. -- www.debian.org - The Universal Operating System

Re: [Vala] Array as generic type not allowed? Can't ArrayList

2012-08-31 Thread Just Fill Bugs
于 08/31/2012 06:52 PM, Luca Bruno 写道: On Fri, Aug 31, 2012 at 12:48 PM, Just Fill Bugs wrote: I tried to create a list of string[] but it's not allowed on vala version 0.16.1. using Gee; void main() { var strings_list = new ArrayList(); } gives: error: `string[]' is not a supported gener

Re: [Vala] Array as generic type not allowed? Can't ArrayList

2012-08-31 Thread Luca Bruno
On Fri, Aug 31, 2012 at 12:48 PM, Just Fill Bugs wrote: > I tried to create a list of string[] but it's not allowed on vala version > 0.16.1. > > using Gee; > void main() { > var strings_list = new ArrayList(); > } > > gives: > error: `string[]' is not a supported generic type argument, use `?

[Vala] Array as generic type not allowed? Can't ArrayList

2012-08-31 Thread Just Fill Bugs
I tried to create a list of string[] but it's not allowed on vala version 0.16.1. using Gee; void main() { var strings_list = new ArrayList(); } gives: error: `string[]' is not a supported generic type argument, use `?' to box value types And adding "?" still give the same error. Should

[Vala] Using Libraries

2012-08-31 Thread Landon Blake
I'm having a little trouble figuring out how to use libraries in a Vala program. I understand how to import a namespace and how to include the library in my command to the compiler. But how do I install a library in the proper location so I don't get a compiler warning about a missing namespace? F

[Vala] Introduction and Syntax Error When Compiling GTK Example

2012-08-31 Thread Landon Blake
This is my first post to the Vala mailing list, so let me make a brief introduction. I've just started learning Vala. I've been a Java programmer and a Linux for several years. I'm getting an error when I try to execute the first GTK programming example found on this page from the command prompt/t