From: luke gruber Date: 2011-08-04T05:41:23+09:00 Subject: Re: system stack error in ObjectSpace.each_object > There are two parts: > In the example "cl" is a member of the Struct which means there is a > pair of accessor methods, so "cl" really is a call to the getter. And > the getter is set to "self" in Module#lemmings (which is an instance > method of all modules and classes). > robert I'm an idiot, I just forgot that instance methods defined in class Module are effectively singleton methods for all classes and modules (or if they aren't, please let me know!). Another question: is there a reason you explicity include enumerable, because I think structs include enumerable by default? Also, the members getter of a struct is set to 'self' by default? Thanks again, I'm gonna look into your blog post. -Luke -- Posted via http://www.ruby-forum.com/.