09/11/07 03:11:53 yhTezjEw.net
とりあえず、MLをあさったら0.7.8の解説があったんでのせとく。
String templates
----------------
string name = "Vala";
stdout.printf (@"Hello, $name!\n");
stdout.printf (@"2 + 3 = $(2 + 3)\n");
Non-null cast
-------------
void main () {
string? a = "hello";
string b = (!) a;
}
Chain-up for gobject-style construction scheme
----------------------------------------------
class MyWindow : Gtk.Window {
public MyWindow () {
Object (type: WindowType.POPUP);
}
construct {
// ...
}
}