public static delegate bool Foo ();

public static void call_foo (Foo foo) {
  GLib.debug ("%s", foo() ? "true" : "false");
}

public static int main (string[] args) {
  call_foo(() => {
      GLib.debug ("Foo");
      //return false;
    });

  return 0;
}
