From: Aleksei Guzev Date: 2001-07-19T00:16:43+09:00 Subject: [ruby-talk:18052] RE: How to define instance variables from 'C'? # -----Original Message----- # From: Wai-Sun Chia [mailto:waisun.chia@compaq.com] # 1. What's the diff between rb_iv_set() and rb_ivar_set()? When do you # use either of them? The first takes name in the form of string, but the second takes ID. # # 2. When you use: # VALUE Foo = Data_Wrap_Struct(cFooClass, 0, NULL, data); # # Does Ruby automatically invoke the .new constructor of No. It does not. If it did one couldn't call Data_Wrap_Struct in its implementation of "new" class method.