From: James Edward Gray II Date: 2005-03-30T22:53:22+09:00 Subject: Re: Open letter to anyone developing a Ruby IDE On Mar 30, 2005, at 6:19 AM, Shajith wrote: > Hi! > >> >> a = somemethod(1, 2, 3) >> a. # what methods are available? We have an >> approximation of >> # the classes/methods in the system, but no idea what >> # `a' corresponds to. >> # >> # You could use "Foo.new is an 'atomic' type >> constraint, >> # everything else bubbles up from these kind of >> constraints", >> # but how reliable would that be? >> > > What about the IDE doing eval("a.methods")? Won't that cover the > general . case? But you need to execute the entire program right down to the line where completion is requested for that eval() return anything useful. A program could have many "a" variables. Executing the code is an unrealistic requirement; way too many possible external dependancies. James Edward Gray II