From: Lothar Scholz Date: 2001-07-19T22:41:21+09:00 Subject: [ruby-talk:18116] Delphi like properties ? I want to implement a C extension for a GUI toolkit that supports the same magic properties like delphi. But how can i define a getter/setter function. I found the "rb_define_virtual_variable" but this is only for global variables not for instance variables. Have i missed something or is it just not possible. And if not wouldn't it nice to have ? Thanks, Lothar