From: ts Date: 2001-07-19T22:56:05+09:00 Subject: [ruby-talk:18117] Re: Delphi like properties ? >>>>> "L" == Lothar Scholz writes: L> I want to implement a C extension for a GUI toolkit that supports L> the same magic properties like delphi. I don't know delphi, but L> But how can i define a getter/setter function. I found the L> "rb_define_virtual_variable" L> but this is only for global variables not for instance variables. Have you looked at attribute ? (attr, attr_reader, attr_writer, ...) Guy Decoux