- 68 名前:63 mailto:sage [2009/11/07(土) 03:11:53 ID: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 { // ... } }
|

|