[Kde-bindings] KDE/kdebindings/ruby/qtruby/src
Arno Rehn
arno at arnorehn.de
Sun Jul 25 17:51:34 UTC 2010
On Sunday 25 July 2010 17:49:17 Sylvain Sauvage wrote:
> Using a block might be less error-prone:
> obj.constCalls do |cobj|
> cobj.doSomething
> end
Ah, that looks nice. :)
> (Although, I can’t see when const method calls could be really
> useful.)
Some classes have method overloads that only differ by constness and where
both have a different behaviour. An example is QDBusArgument, where the non-
const versions of beginMap() and the like won't work on reply (i.e. read-only)
values.
--
Arno Rehn
arno at arnorehn.de
More information about the Kde-bindings
mailing list