From: William Djaja Tjokroaminata Date: 2002-08-01T02:59:32+09:00 Subject: Re: Segmentation Fault - Ruby Garbage Collection Dear Mr. Matz, Thanks for the info (and also thanks to Guy who replied earlier). I am just curious. For the attribute, we have only a single function, "rb_define_attr (variable, name, read, write)", and we can control accessability using the read and write arguments. Why for global variables we have three functions with unsimilar names? rb_define_variable - read and write rb_define_readonly_variable - read only rb_global_variable - no read and no write Isn't it cleaner if we also have only a single function such as "rb_define_variable (name, value, read, write)"? Regards, Bill ========================================================================== Yukihiro Matsumoto wrote: > rb_global_variable(VALUE*) is your friend. > matz.