Re: [Vala] [ANNOUNCE] Vala 0.1.6 - Compiler for the GObject type system
- From: pancake <pancake youterm com>
- To: vala-list gnome org
- Subject: Re: [Vala] [ANNOUNCE] Vala 0.1.6 - Compiler for the GObject type system
- Date: Tue, 22 Jan 2008 15:12:25 +0100
On Mon, Jan 21, 2008 at 07:34:12PM +0100, J?rg Billeter wrote:
* Support conditional method compilation.
[Conditional (condition = "CONDITION")]
public void foo () { }
This method will be ignored unless you pass -D CONDITION to valac.
Is this "condition" a real condition? or just a native #ifdef?
It is possible to create '#else'-like conditionals?
* Add basic support for method pre- and postconditions.
interface Foo {
public abstract int bar (int x)
requires (x > 0)
ensures (result > 0);
}
This is awesome :)
These kind of features can make vala perfect for learning programming
for university students (imho it's better than python or java to learn)
Anyone with short examples for the new language features among these?
Yup it does. But it will be better to have them in the wiki.
Thanks for this new release!
--pancake
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]