[Kde-bindings] const_missing method in ruby 1.8

Richard Dale Richard_Dale at tipitina.demon.co.uk
Tue Aug 5 07:57:34 UTC 2003


>From the ruby 1.8 release notes:

': constants lookup

  improved at the performance of searching by using an internal hash
  table.

  calls const_missing method of the class/module, if constant is not
  found in the look up path.'

So it does look as though it will possible to trap references to to 
const_missing for constants in QtRuby. Then the Qt::Widget::MYCONST syntax 
can be used rather than Qt::Widget.MYCONST.

-- Richard


More information about the Kde-bindings mailing list