using DBus;
namespace Test {
class Foo : Object {
public signal void some_event ();
public void method () {
some_event ();
}
}
}
class Track : GLib.Object, Test.Foo {
public double mass;
public double name { get; set; }
private bool terminated = false;
public void terminate() {
terminated = true;
}
}
const ALL_UPPER_CASE = "you should follow this convention";
var t = new Track();
var s = "hello";
var l = new List<int>();
var i = 10;
#if (ololo)
Regex regex = /foo/;
#endif
void main () {
var long_string = """
Example of "verbatim string".
Same as in @"string" in C#
"""
var foo = new Foo ();
foo.some_event.connect (callback_a);
foo.some_event.connect (callback_b);
foo.method ();
}