On Feb 18, 2006, at 1:54 PM, Suraj Kurapati wrote: > Is there a limit on how many methods you can define for a module? Only the amount of memory you have. 1,000,000 takes about 700MB on my powerbook. 2,000,000 takes about 1.5GB on my powerbook. module X count = 0 loop do name = "meth#{count}" define_method name do end module_function name count += 1 puts count if count % 100000 == 0 end end > I'm getting a SystemStackError when defining three or more module > methods using rb_define_module_function(). Lets see your code then. -- Eric Hodel - drbrain / segment7.net - http://segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com