From: Josh Cheek Date: 2010-11-11T18:20:53+09:00 Subject: Re: what's an object? --0016362842de7c7a440494c37db9 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Nov 11, 2010 at 2:59 AM, Ammar Ali wrote: > On Thu, Nov 11, 2010 at 10:51 AM, Brian Candler > wrote: > > One other point. A local variable is not an object and never is - > > I think that's too general and confusing, at least to me. > > >> def m > >> a = [1,2,3] > >> p a.is_a?(Object) > >> end > => nil > >> m > true > => true > > Is there more insight behind that statement? Or am I missing something > fundamental? > > Thanks, > Ammar > > I assume he means a itself, as opposed to the object that a is referencing. I personally think that most of these conversations end up pedantic and useless. I subscribe to Yehuda Katz's view that if a complicated mental model doesn't provide anything useful, it should not be used as an explanation http://yehudakatz.com/2010/02/25/rubys-implementation-does-not-define-its-semantics/ --0016362842de7c7a440494c37db9--