From: matz@... (Yukihiro Matsumoto) Date: 2001-10-25T12:48:11+09:00 Subject: [ruby-talk:23257] Re: Instance VARS and C objects Hi, In message "[ruby-talk:23176] Re: Instance VARS and C objects" on 01/10/24, Michal Rokos writes: |Yukihiro Matsumoto wrote: |> So why not attributes("virtual_parameters")? |> You have perfect control if you use attributes. |> But you may have unspoken problems. | | Just one reason to allow InstanceVariables is nicer code. I see. You want to show arrays as your revealing data. (a) If you don't need full set of Array API, provide alternative API, for example: class X ... def [](n) end def []=(n,val) end end (b) return Array-like object, that updates internal CStruct when it's modified. MetaRuby would help you. See RAA for more information about MetaRuby. matz.