Re: [Vala] Vala & DBus - errors & future syntax question



Hi Paweł,

On Sat, 2007-12-22 at 02:46 +0100, Paweł Różański wrote:
As I understand dbus support is preliminary.

I can do:
  my = conn.get_object(.......)
  string s = my.GetSomeString();
  message ("%s" ,s);

but I can't:
  message ("%s" ,my.GetSomeString());

  error: invalid use of void expression (because vala generates
dbus_g_proxy_call_no_reply)

Yes, D-Bus support is currently limited to code where valac can infer
the type of the parameters and the return value. It's planned to support
reading D-Bus introspection files for that purpose.

Jürg




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]