On Fri, 05 Mar 2004 16:18:50 +0100, Yalin wrote: [snip] > but what is the reason for this problem? > The same is, e.g. when you use the "inspect" or the "to_s" message of an > object. > p "hello" # "hello" puts("hello".inspect) # "hello" All objects has an .inspect method. Even though we doesn't define it ourselves then its there. For instance a slightly more complex example.. then .inspect will do a nice output of the internal state of the object. class Person def initialize(firstname, lastname) @firstname = firstname @lastname = lastname end end person = Person.new("Albert", "Einstein") p person #<Person:0x810a800 @firstname="Albert", @lastname="Einstein"> -- Simon Strandgaard