From: Shugo Maeda Date: 2010-03-11T11:32:37+09:00 Subject: [ruby-core:28600] Re: Question on scoped constant resolution Class vs Module Hi, Sorry for the delay. I missed this thread. 2010/3/7 Yusuke ENDOH : >> 4: Is the draft ruby spec correct, or MRI behavior correct, or did I miss >> something in the following: > > Good point. �I bet the draft is wrong. I agree with you, and will fix the draft. Is it enough to fix 11.4.3.2 c)-3) as follows? i) Let L be the included module list of C. Search each element of L in the reverse order for a binding of a constant with name N. ii) If the binding is found, the value of the scoped-constant-reference is the value of the binding. iii) Otherwise, if C is an instance of the class Class, search for a binding of a constant with name N from Step e of �11.4.3.1. iv) Otherwise, create a direct instance of the class Symbol with name N, and let R be that instance. Invoke the method const_missing on C with R as the only argument. -- Shugo Maeda