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

2011-09-17 Thread Jürg Billeter
We are pleased to announce version 0.14.0 of Vala, a compiler for the
GObject type system.

Vala 0.14.0 is now available for download at:
   http://download.gnome.org/sources/vala/0.14/

Changes since 0.13.4
 * Bug fixes and binding updates.

Vala is a programming language that aims to bring modern programming
language features to GNOME developers without imposing any additional
runtime requirements and without using a different ABI compared to
applications and libraries written in C.

valac, the Vala compiler, is a self-hosting compiler that translates
Vala source code into C source and header files. It uses the GObject
type system to create classes and interfaces declared in the Vala source
code.

More information about Vala is available at

http://www.vala-project.org/


The Vala Team

___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


[Vala] [Re] SQLite3 in Windows

2011-09-17 Thread Leoncio Gil
Hello,

Although seems that there is no one interested in Vala inside Windows, I
will post the solution to the problem.

After search and try a lot I have solved the problem.

 1.- Download the MinGW (the get-inst one). Yes, It's come with valac for
Windows, but it is needed a tool that it doesn't come with valac.
 2.- In tha case of sqlite3 (can be helpfull as guide) edit the file
sqlite3.def and insert LIBRARY sqlite3.dll at the begin. Then run
x:\MinGW\bin\dlltool -d sqlite3.def -l libsqlite3.dll.a
 3.- Copy the sqlite3.h file to Vala's include directory and the .def
and .dll.a to the lib directory. Copy sqlite3.dll to Windows\system32
 4.- Now can compile the .vala file as valac -X -mwindows -X lsqlite3
--pkg=sqlite3 test.vala

A last thing: GLib's printf can work against Windows command line (aka
MS-DOS window)?

Thanks.


2011/9/5 Leoncio Gil lgg2l...@gmail.com

 Hello,

 Some one has try to use SQLite3 under Windows?.

 I have copy sqlite3.h and sqlite2ext.h to Valas's include directory and the
 sqlite3.dll to Windows\system32 but I am getting errors of type:
 :(.text+0x142): undefined reference to  'sqlite3_exec' 

 There is any .vapi file for sqlite3 under Windows? (I thinks that this is
 what is making problems)

 Thanks.

___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


[Vala] Testing generic parameters for numeric type? For method implementation?

2011-09-17 Thread Charles Hixson
How should one test a generic parameter to determine whether or not it 
is of a numeric type?
Should I just go through a long If tree matching it's type name against 
all of the predefined numeric types?


Is there some way to determine whether a generic parameter responds to 
to_string()?  At run time?  (The compiler seems to be very unhappy with 
attempts to use that unless you cast the parameter to an appropriate type.)

___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list