From: matz@... (Yukihiro Matsumoto) Date: 2002-08-27T12:54:35+09:00 Subject: Re: Question about Ruby extension API Hi, In message "Question about Ruby extension API" on 02/08/27, "Bennett, Patrick" writes: |I've looked all over but can't find the function call for doing a simple assignment (!) It depends on what you want to assign to. If it is a local variable, reconsider your design. You cannot modify local variables from within a C function, since a C function is a method, and a method cannot modify local variables of outer methods. If it is an instance variable, use rb_ivar_set(). For a global variable, rb_gvar_set() is available. matz.